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 inputKey option to PanInput and WheelInput #204

Closed malangfox closed 1 year ago

malangfox commented 1 year ago

Details

This adds InputKey option that accepts input only when certain keys are pressed for the PanInput and WheelInput. Considering that some devices don't have an Alt key and use a meta key instead, I implemented InputKey option to be an array of keys that allows input when any one of these is pressed.