Atlas Engine
API Referenceatlasatlas/input

MouseScrollPacket

Horizontal and vertical scroll offsets.

Module: atlas/input

Horizontal and vertical scroll offsets.

Declaration

export type MouseScrollPacket = {
        /**
         * The horizontal input offset since the previous event.
         */
        xoffset: number;
        /**
         * The vertical input offset since the previous event.
         */
        yoffset: number;
    };

Properties

xoffset

The horizontal input offset since the previous event.

xoffset: number;

yoffset

The vertical input offset since the previous event.

yoffset: number;

On this page