fix smooth scroll in safari and chrome