Back to TIL
April 2025
posted on 04.17.2025

JavaScript: scrollend event

The new scrollend event fires when scrolling has ended.

addEventListener("scrollend", (event) => {});

onscrollend = (event) => {};

Previously before this event, there was no straightforward way to detect when scrolling has ended. We would have had to use the onscroll and a timer to detect if scrolling has ended.

Read the full write-up on developer.chrome.com.

No reactions yet

2026.10.01 14:01:34 in Naperville, IL
Last visitor from Mitaka, Japan
Theme
Color theme
⌘K