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
The scroller can incorrectly decide that an element is already visible when
specifying {force: false, offset: nonZero}. The code checks if targetY is
within the current visible portion of container, but targetY has the offset applied already.
*------------*
| container |
| above |
*~ ~ ~ ~ ~ ~ * container top
| |
| visible |
| area |
| | <-|
| | |
| | |
| | | skips scrolling if elm
*~ ~ ~ ~ ~ ~ * | is within this area
| *-------* | |
| | elm | | |
| *-------* | |
| | <-|
| container |
| below |
*------------*
The text was updated successfully, but these errors were encountered:
nburlett
added a commit
to nburlett/vue-scrollto
that referenced
this issue
Apr 11, 2019
The scroller can incorrectly decide that an element is already visible when
specifying
{force: false, offset: nonZero}
. The code checks iftargetY
iswithin the current visible portion of container, but
targetY
has theoffset
applied already.The text was updated successfully, but these errors were encountered: