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

defaulttrue
typeboolean | 'x' | 'y' | 'z'

reverseSign:

default[true,true,false]
typeboolean | [boolean, boolean, boolean]