fix stopAnimating to prevent unnecessary scrolling