Bug Tracker

Modify

Ticket #8833 (closed bug: worksforme)

Opened 2 years ago

Last modified 2 years ago

scrollTop/animate - animate does not stop.

Reported by: developer@… Owned by:
Priority: undecided Milestone: 1.next
Component: effects Version: 1.5.2
Keywords: Cc:
Blocking: Blocked by:

Description

Using scrollTop in the following manner, browser Firefox 3.6.16:

$('html,body').animate({ scrollTop: $("#page").offset().top }, { duration: 'slow'});

After the page finishes scrolling, if you try to scroll the page with mouse wheel or browser scroll bar, the page wants to return to scrolled position.

Change History

comment:1 Changed 2 years ago by addyosmani

  • Status changed from new to closed
  • Resolution set to worksforme

Thanks for submitting a ticket to the jQuery project!.

Please see here for a live test case of the code you supplied:  http://jsfiddle.net/addyosmani/xS88W/show/. I haven't been able to reproduce the issue you mention using jQuery 1.5.2 and Firefox 3.6.16 or Firefox 4.

It's possible that you may be using some additional logic or plugins on your page that are contributing to the behavior you're seeing.

comment:2 Changed 2 years ago by rwaldron

  • Component changed from unfiled to effects

comment:3 Changed 2 years ago by neoswf

I'm using 1.4.4 and it happening to me as well....

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.