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 useAnimation option to WheelInput #189

Closed malangfox closed 2 years ago

malangfox commented 2 years ago

Details

As #174 is applied, WheelInput always uses an animation to smooth out coordinate movement through the mouse wheel. However, there are use cases where playing smooth animation is unnecessary and the coordinate change needs to be applied immediately.

This provides an option whether to use animation for the coordinate change of WheelInput.