Options
To customize the behaviour of wheel-gestures options can be passed at creation or afterwards using the updateOptions method.
const wheelGestures = WheelGestures({ preventWheelAction: 'x' })
// ... or later after creation
wheelGestures.updateOptions({ preventWheelAction: 'y' })
preventWheelAction
default | true |
---|---|
type | boolean | 'x' | 'y' | 'z' |
reverseSign:
default | [true,true,false] |
---|---|
type | boolean | [boolean, boolean, boolean] |