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
.getOnscreenNodes() uses Y.DOM.getXY() to get the position of each node, which is in page coordinates. It's compared against the plugin's _lastScroll property which is in container-relative coordinates. It ends up working sometimes, but not always. I'm not 100% sure why.
Talked with @rgrove about this in IRC & it sounded like he was volunteering to fix it.
[16:39] <@rgrove> It's the Y.DOM.getXY() call in getOnscreenNodes(). DOM.getXY() returns a viewport-relative position, but it's compared with a container-relative position, which is invalid.
[16:40] <@rgrove> Coincidentally, the fix is to use getBoundingClientRect(), which I want to do anyway!
The text was updated successfully, but these errors were encountered:
Bug is in 3.10.1 & earlier versions, presumably.
.getOnscreenNodes()
usesY.DOM.getXY()
to get the position of each node, which is in page coordinates. It's compared against the plugin's_lastScroll
property which is in container-relative coordinates. It ends up working sometimes, but not always. I'm not 100% sure why.http://jsbin.com/exekux/4/edit shows the practical implications of this bug, some images just never get triggered.
Talked with @rgrove about this in IRC & it sounded like he was volunteering to fix it.
The text was updated successfully, but these errors were encountered: