SVGScroll | onscroll event
Occurs when a document view is being moved along the x-axis, y-axis, or both axes.
|HTML Attribute||<element onscroll = "handler(event)">|
|Event Property||object.onscroll = handler;|
|attachEvent Method||object.attachEvent("onscroll", handler)|
|addEventListener Method||object.addEventListener("SVGScroll", handler, useCapture)|
Event handler parameters
- Scalable Vector Graphics: Scripting, Section 18.4.3
The onscroll event occurs when a document view is being moved through a direct user interaction or any change in the currentTranslate property that is available on the svg element. This event applies only to the outermost svg element and is dispatched after the movement has taken place.
The contents of an object scroll until new portions of the object become visible.
To invoke this event, do one of the following:
- The user shifts the document view.