VisualViewport.onscroll
The onscroll event handler of the VisualViewport interface is called when a viewport is scrolled, i.e. when the scroll event is fired.
Syntax
VisualViewport.onscroll = function(e) { ... }
Examples
VisualViewport.onscroll = function(e) {
...
}
Specifications
| Specification |
|---|
| CSSOM View Module # eventdef-document-scroll |
Browser compatibility
BCD tables only load in the browser