Interface ScrollData

Scrolling interaction data

interface ScrollData {
    currentTarget: null | EventTarget;
    scrollX: number;
    scrollY: number;
    target: null | EventTarget;
    timeStamp: number;
}

Hierarchy

Implemented by

Properties

currentTarget: null | EventTarget

A reference to the currently registered target for the event. This is the object to which the event is currently slated to be sent. It's possible this has been changed along the way through retargeting.

scrollX: number

The number of pixels that the document has already been scrolled horizontally.

scrollY: number

The number of pixels that the document has already been scrolled vertically.

target: null | EventTarget

A reference to the target to which the event was originally dispatched.

timeStamp: number

The time at which the event was created (in milliseconds). By specification, this value is time since epoch—but in reality, browsers' definitions vary. In addition, work is underway to change this to be a DOMHighResTimeStamp instead.

Generated using TypeDoc