Closed (fixed)
Project:
scroll to top
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jan 2013 at 18:52 UTC
Updated:
23 Nov 2013 at 23:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
stewart.adam commentedAttached patch resolves the problem by inspecting only the context for matching elements, not the entire page. The scroll callback is only added when context == document (i.e. when the page first loads), and is equivalent to $(document).ready().
Comment #2
tarekdj commentedThanks stewart.adam for the patch, status changed for review
Comment #3
R2-D8 commentedIt seems to me the 7.x versions are having the same problem.
Of course the 6.x-patch doesn't match on 7.x, and I'm not a JavaScript expert.
But after some analysis and testing the only modifications I needed are:
Maybe someone can provide a better solution.
Comment #4
tarekdj commentedFix commited to dev branch. Thanks stewart.adam.
Comment #5
tarekdj commented