scrollend event
#560
-
Any possibility I can register on a scrollend event like the native scroll end event: https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollend_event |
Beta Was this translation helpful? Give feedback.
Answered by
idiotWu
Mar 1, 2024
Replies: 1 comment 1 reply
-
A workaround is to register a debounced listener: let scrollEndTimer;
scrollbar.addListener(() => {
clearTimeout(scrollEndTimer);
scrollEndTimer = setTimeout(() => {
console.log('scrollend');
}, 100); // any timeout > 16.7ms should possibly work
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
enne87
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A workaround is to register a debounced listener: