Stop Guessing When Scrolling Stops — Use scrollend
DEV Community·6 points·parsajiravand·1 day ago·dev.to
For years, 'has the user stopped scrolling?' was a guess: debounce the scroll event, pick a delay, hope. The scrollend event answers the question directly — and as of Safari 26.2, it finally works everywhere. Here's the bug the guess causes, and the one-line fix.
Read the full article at dev.to →
Related stories
- Hacker News · 1 points · about 16 hours ago
- JavaScript for Kids | No Starch Pressnostarch.comLobsters · 1 points · over 11 years ago
- Lobsters · 3 points · over 7 years ago
- DEV Community · 11 points · 8 days ago
- From WordPress to JS. A Tale of a Full Stack JavaScript Blogthefullstack.xyzLobsters · 0 points · about 9 years ago
- Lobsters · 3 points · 9 days ago