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.
When using WheelInput with mouse, offset of the virtual coordinate does not update smoothly.
This problem can be solved by using animateTo on change, and property named releaseThreshold has been added to WheelInputOption to trigger release event after animation ends.
releaseThreshold decides millisecond that trigger release event after last input. Before this property is added, Release event is automatically triggered after 50ms from last input.
Demos using mouse scroll within WheelInput Before.
Details
When using WheelInput with mouse, offset of the virtual coordinate does not update smoothly. This problem can be solved by using
animateTo
on change, and property namedreleaseThreshold
has been added toWheelInputOption
to trigger release event after animation ends.releaseThreshold
decides millisecond that trigger release event after last input. Before this property is added, Release event is automatically triggered after 50ms from last input.Demos using mouse scroll within WheelInput Before.
Demos using mouse scroll within WheelInput After.