API

Class ArcRotateCameraMouseWheelInput

Manage the mouse wheel inputs to control an arc rotate camera.

Implements

Index

Defines the camera the input is attached to.

customComputeDeltaFromMouseWheel: Nullable<
    (
        wheelDelta: number,
        input: ArcRotateCameraMouseWheelInput,
        event: IWheelEvent,
    ) => number,
> = null

If set, this function will be used to set the radius delta that will be added to the current camera radius

wheelDeltaPercentage: number = 0

wheelDeltaPercentage will be used instead of wheelPrecision if different from 0. It defines the percentage of current camera.radius to use as delta when wheel is used.

wheelPrecision: number = 3.0

Gets or Set the mouse wheel precision or how fast is the camera zooming.

zoomToMouseLocation: boolean = false

Gets or Set the boolean value that controls whether or not the mouse wheel zooms to the location of the mouse pointer or not. The default is false.