naver / egjs-axes

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.
https://naver.github.io/egjs-axes/
MIT License
179 stars 31 forks source link

feat: add touchAction option #185

Closed malangfox closed 2 years ago

malangfox commented 2 years ago

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 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.