Just scroll really hard to the end in the above to observe the bug.
I have removed it in my fork and all is well...
Again willing to pr and brain storm other scenarios... like may do a quick search for the last visible one? that might be a tiny bit faster than the login below...
While the short cut to quickly calculate the snap position is a great idea it has one flaw. I fails if the last
snapElement
isdisplay:none
Example here
Just scroll really hard to the end in the above to observe the bug.
I have removed it in my fork and all is well...
Again willing to pr and brain storm other scenarios... like may do a quick search for the last visible one? that might be a tiny bit faster than the login below...