The TweenLite instance that gets created as soon as the mouse (or touch) is released (when throwProps
is true
) - this allows you to check its duration or pause/resume or change its timeScale or whatever you want. Keep in mind that a new tween is created each time the element is "thrown". You can easily get it when the user releases the mouse (or touch) by referencing this.tween
inside the onDragEnd
callback.
Implementation public function get tween():TweenLite
GreenSock Docs (HTML5/JS)
Draggable
.tween
.tween : TweenLite
[read-only] The TweenLite instance that gets created as soon as the mouse (or touch) is released (when throwProps is true) - this allows you to check its duration or pause/resume or change its timeScale or whatever you want.
