VisualViewport: scrollend event

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

The scrollend event of the VisualViewport interface is fired when a scrolling operation on the visual viewport ends. This allows you to update an element when a scrolling action is completed. For example, you could use the resize and scroll events to keep an element fixed to the visual viewport as it is pinch-zoomed and scrolled, and update it with new content when scrolling ends using scrollend.

Syntax

Use the event name in methods like addEventListener(), or set an event handler property.

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

onscrollend = (event) => { }

Event type

A generic Event.

Examples

See the VisualViewport landing page for a usage demo.

Specifications

Specification
CSSOM View Module
# eventdef-document-scrollend

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
scrollend event
Chrome – Partial support
Chrome 114 – 125 (Release date: 2023-05-30)
footnote Partial support
footnote The onscrollend event handler property is not supported. See bug 325307785.
Chrome – Full support
Chrome 126 (Release date: 2024-06-11)
footnote Full support
Edge – Partial support
Edge 114 – 125 (Release date: 2023-06-02)
footnote Partial support
footnote The onscrollend event handler property is not supported. See bug 325307785.
Edge – Full support
Edge 126 (Release date: 2024-06-13)
footnote Full support
Firefox – Full support
Firefox 150 (Release date: 2026-04-21)
footnote Full support
Opera – Partial support
Opera 100 – 111 (Release date: 2023-06-29)
footnote Partial support
footnote The onscrollend event handler property is not supported. See bug 325307785.
Opera – Full support
Opera 112 (Release date: 2024-07-11)
footnote Full support
Safari – No support
Safari
footnote
footnote See bug 300493
Chrome Android – Partial support
Chrome Android 114 – 125 (Release date: 2023-05-30)
footnote Partial support
footnote The onscrollend event handler property is not supported. See bug 325307785.
Chrome Android – Full support
Chrome Android 126 (Release date: 2024-06-11)
footnote Full support
Firefox for Android – Full support
Firefox for Android 150 (Release date: 2026-04-21)
footnote Full support
Opera Android – Partial support
Opera Android 76 – 82 (Release date: 2023-06-26)
footnote Partial support
footnote The onscrollend event handler property is not supported. See bug 325307785.
Opera Android – Full support
Opera Android 83 (Release date: 2024-06-25)
footnote Full support
Safari on iOS – No support
Safari on iOS
footnote
footnote See bug 300493
Samsung Internet – Partial support
Samsung Internet 23 – 27 (Release date: 2023-10-18)
footnote Partial support
footnote The onscrollend event handler property is not supported. See bug 325307785.
Samsung Internet – Full support
Samsung Internet 28 (Release date: 2025-04-02)
footnote Full support
WebView Android – Partial support
WebView Android 114 – 125 (Release date: 2023-05-30)
footnote Partial support
footnote The onscrollend event handler property is not supported. See bug 325307785.
WebView Android – Full support
WebView Android 126 (Release date: 2024-06-11)
footnote Full support
WebView on iOS – No support
WebView on iOS
footnote
footnote See bug 300493

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
No support
No support
See implementation notes.
Has more compatibility info.