You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When scrolling to an element and using offset it appears the calculation is made based on the first view of the dom. Any changes to the dom and the offset behaves incorrectly.
The text was updated successfully, but these errors were encountered:
Not 100% sure what you mean, the plugin won't auto update the scroll if you move elements around or change the dom in any way. Think of this plugin as a wrapper to $().animate()
Essentially the object I'm scrolling to is inside a toggled div. When the first scrollTo is triggered the offset works fine but subsequent scrollTo to the same object the offset is wrong.
Not sure what this demo tries to achieve, you are scrolling to the element
with id "6" that is hidden unless you expand, so there's no point in
scrolling unless it's visible (btw ids shouldn't start with a number). Once
you "expand" and scroll, the plugin seems to be respecting the offset
correctly. Trying this on Firefox Mac.
Essentially the object I'm scrolling to is inside a toggled div. When the
first scrollTo is triggered the offset works fine but subsequent scrollTos
to the same div the offset is wrong.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-21870558
.
When scrolling to an element and using offset it appears the calculation is made based on the first view of the dom. Any changes to the dom and the offset behaves incorrectly.
The text was updated successfully, but these errors were encountered: