Skip to content

bar.css('top') instead of bar.position().top#7

Merged
rochal merged 1 commit intorochal:masterfrom
robink:master
Dec 3, 2011
Merged

bar.css('top') instead of bar.position().top#7
rochal merged 1 commit intorochal:masterfrom
robink:master

Conversation

@robink
Copy link
Contributor

@robink robink commented Nov 30, 2011

As seen on http://api.jquery.com/position/ , position() is not working with hidden elements

This induce a bug that you can reproduce this way:

1/ go to a scrollable area, scroll to the middle of it
2/ stop scrolling with still having the cursor in the scrollable area, do not move the mouse anymore
3/ wait for the scrollbar to disappear
4/ scroll again, still without moving the cursor

Scroll should go to top.

This is fixed by the following pull request.

@rochal
Copy link
Owner

rochal commented Nov 30, 2011

thanks! I'll review asap

rochal added a commit that referenced this pull request Dec 3, 2011
bar.css('top') instead of bar.position().top
@rochal rochal merged commit caf84dc into rochal:master Dec 3, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants