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
Here, scrolling on either the sidebar or the main-pane will fire a scroll event on the element in question, but this event will not bubble up to the document as far as I understand.
Because debounced:scroll is ultimately handled via an event listener on the document (this part here), I don’t think it’s currently possible to listen for a debounced scroll on the scrollable elements themselves. This means something like the following will not be fired on scroll:
First and foremost, many thanks for the great library – it's a real joy to work with :)
Just thought I'd make a note of one minor hiccup I think I've found when it comes to scrolling on individual elements rather than the document.
Let's say we have an HTML structure along these lines, with elements on the page that are individually scrollable:
Here, scrolling on either the
sidebar
or themain-pane
will fire ascroll
event on the element in question, but this event will not bubble up to thedocument
as far as I understand.Because
debounced:scroll
is ultimately handled via an event listener on thedocument
(this part here), I don’t think it’s currently possible to listen for a debounced scroll on the scrollable elements themselves. This means something like the following will not be fired on scroll:If this is the case then I don’t have a neat solution in mind unfortunately – just thought I’d post in here in case someone else might!
The text was updated successfully, but these errors were encountered: