Removed Greensock ThrowPropsPlugin as an dependency.

This commit is contained in:
2019-03-29 09:11:21 +01:00
parent fe36b66dc5
commit 6c2ae3b433
3 changed files with 82 additions and 23 deletions
+8 -3
View File
@@ -745,7 +745,9 @@ export default class Timeline extends BitmapLabeledGraphics {
this.killTweens()
this.deltas = []
this.validScroll()
ThrowPropsPlugin.track(this, 'delta')
if (typeof ThrowPropsPlugin != "undefined") {
ThrowPropsPlugin.track(this, 'delta')
}
}
onMove(event, interaction) {
@@ -762,8 +764,11 @@ export default class Timeline extends BitmapLabeledGraphics {
}
onEnd(event, interaction) {
let vel = ThrowPropsPlugin.getVelocity(this, 'delta')
ThrowPropsPlugin.untrack(this)
if (typeof ThrowPropsPlugin != "undefined") {
let vel = ThrowPropsPlugin.getVelocity(this, 'delta')
ThrowPropsPlugin.untrack(this)
}
this.killTweens()
this.redraw()