SVGScroll | onscroll event
Occurs when a document view is being moved along the x-axis, y-axis, or both axes.
![]() ![]() |
Syntax
| 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 information
| Synchronous | No |
|---|---|
| Bubbles | Yes |
| Cancelable | No |
Event handler parameters
- pEvt [in]
-
Type: IDOMUIEvent
The IDOMEvent object.
Standards information
- Scalable Vector Graphics: Scripting, Section 18.4.3
Remarks
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.
See also
Show:

