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.
Legacy behavior animateOn: "release" triggers change event directly to the destination from the input.
Newly added behavior animateOn: "change" will play the animation with the destination from the input.
animateOn: "change" uses the new changeTo method in AnimationManager.
changeTo calls _animateLoop that starts the animation set by the user and fires continuous change events.
Movement through the changeTo method does not trigger animationStart and animationEnd events.
When the input is released, the existing animation behavior works for both options triggering animationStart and animationEnd events, and the sequence of events does not change.
Details
animateOn
option adds a new way to triggerchange
events by continuous animation.Usage
This is an example of applying
animateOn
option.How it works
Legacy behavior
animateOn: "release"
triggerschange
event directly to the destination from the input.Newly added behavior
animateOn: "change"
will play the animation with the destination from the input.animateOn: "change"
uses the newchangeTo
method in AnimationManager.changeTo
calls_animateLoop
that starts the animation set by the user and fires continuous change events. Movement through thechangeTo
method does not triggeranimationStart
andanimationEnd
events.When the input is released, the existing animation behavior works for both options triggering
animationStart
andanimationEnd
events, and the sequence of events does not change.