A scroll action.

interface Scroll {
    scroll_x: number;
    scroll_y: number;
    type: "scroll";
    x: number;
    y: number;
}

Properties

Properties

scroll_x: number

The horizontal scroll distance.

scroll_y: number

The vertical scroll distance.

type: "scroll"

Specifies the event type. For a scroll action, this property is always set to scroll.

x: number

The x-coordinate where the scroll occurred.

y: number

The y-coordinate where the scroll occurred.