A module used to change the information of user action entered by various input devices such as touch screen or mouse into the logical virtual coordinates.
After we removed hammerManagerOptions In PanInput and PinchInput, the touch-action css property of the element is set to "none" to prevent scrolling when a touch event occurs.
However, There are cases which should allow scrolling by touch entirely or only for a specific direction.
For example, Flicking that only moves horizontally should allow vertical scrolling via touch event. This provides usable option for issue 637 on Flicking.
Also there are useDrag option at conveyer which set touch-action property to "auto".
Added touchAction options to PanInput and PinchInput so that we can set various touch-actions on elements.
Details
After we removed
hammerManagerOptions
In PanInput and PinchInput, the touch-action css property of the element is set to "none" to prevent scrolling when a touch event occurs. However, There are cases which should allow scrolling by touch entirely or only for a specific direction. For example, Flicking that only moves horizontally should allow vertical scrolling via touch event. This provides usable option for issue 637 on Flicking. Also there areuseDrag
option at conveyer which set touch-action property to "auto".Added
touchAction
options to PanInput and PinchInput so that we can set various touch-actions on elements.