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
@abulrim Great catch! The early return is my fault. Oversight by me. The second point - So we are passing in an anon callback; however, I'm also seeing this as I would only guess it is not a reference to the function object.
If you felt like submitting a PR to use Function.prototype.bind for both the scroll event listeners and the viewportListeners (or other solution you have), that would be great! Otherwise, I can push something up to fix these as well. Let me know! Again, thanks for bringing this up and documenting it so well.
Version
3.0.0
Steps to reproduce
in-viewport
mixin onwindow
window
in the dev toolsExpected Behavior
Scroll events should be cleaned when element destroyed
Likely Culprit
The changes done to the
_unbindListeners
method in thein-viewport
mixin in this PR (wereturn
before reachingthis._unbindScrollDirectionListener()
)The text was updated successfully, but these errors were encountered: