Class s7sdk.event.ScrollEvent
Dispatched every time the scroll position has changed. An event handler can access the ScrollEvent object by reading the s7event property from the DOM event.
Constructor Attributes | Constructor Name and Description |
---|---|
s7sdk.event.ScrollEvent(type, pos, bubbles)
|
Field Attributes | Field Name and Description |
---|---|
Specifies whether the event should bubble.
|
|
New scroll position.
|
|
<static> <constant> |
s7sdk.event.ScrollEvent.SCROLL_POSITION_EVENT
Defines the value of the
type property of a scrollPositionEvent event object. |
The type of the particular event object.
|
Class Detail
s7sdk.event.ScrollEvent(type, pos, bubbles)
- Parameters:
- {String} type
- Defines the value of the type property.
- {Number} pos
- New scroll position.
- {Boolean} bubbles
- Defines whether the event bubbles.
Field Detail
{Boolean}
bubbles
Specifies whether the event should bubble.
{Number}
position
New scroll position.
<static> <constant>
{String}
s7sdk.event.ScrollEvent.SCROLL_POSITION_EVENT
Defines the value of the
type
property of a scrollPositionEvent
event object. This event is
dispatched whenever the scroll position has changed.
- Default Value:
- scrollPositionEvent
{String}
type
The type of the particular event object.