WheelOptions
Options for how to respond to wheel events.
Properties
cssFilter?
optionalcssFilter:string
Optional CSS 3 selector to check if the wheel should be enabled for the current event target.
filter()?
optionalfilter: (e) =>boolean
Optional function to call to check if wheel zooming should be enabled for the current event target.
Parameters
e
MouseEvent
Mouse event for the wheel
Returns
boolean
reverse?
optionalreverse:boolean
Defaults to false. If true, the zoom direction is reversed: wheel up zooms out, and wheel down zooms in.
sensitivity?
optionalsensitivity:number
How sensitive the wheel should be.
shiftToChangeMode?
optionalshiftToChangeMode:boolean
Defaults to true. When true, holding the SHIFT key while using the mouse wheel will toggle the wheel's mode: if the wheel is currently set to pan, it will zoom. If it is currently set to zoom, it will pan.
useMetaKey?
optionaluseMetaKey:boolean
If true, the "meta" key (CMD on Mac, Ctrl on windows/linux) must be pressed in order for wheel zoom to operate. This can be useful if your UI fills the screen in one or more axes and your users would not be able to scroll past the Surface widget.