Removed Greensock ThrowPropsPlugin as an dependency.
This commit is contained in:
+10
-6
@@ -258,7 +258,9 @@ export default class List extends PIXI.Container {
|
||||
}
|
||||
|
||||
TweenLite.killTweensOf(this.container.position, {x: true, y: true})
|
||||
ThrowPropsPlugin.track(this.container.position, 'x,y')
|
||||
if (typeof ThrowPropsPlugin != "undefined") {
|
||||
ThrowPropsPlugin.track(this.container.position, 'x,y')
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -312,11 +314,13 @@ export default class List extends PIXI.Container {
|
||||
}
|
||||
}
|
||||
|
||||
ThrowPropsPlugin.to(this.container.position, {
|
||||
throwProps,
|
||||
ease: Strong.easeOut,
|
||||
onComplete: () => ThrowPropsPlugin.untrack(this.container.position)
|
||||
}, .8, .4)
|
||||
if (typeof ThrowPropsPlugin != "undefined") {
|
||||
ThrowPropsPlugin.to(this.container.position, {
|
||||
throwProps,
|
||||
ease: Strong.easeOut,
|
||||
onComplete: () => ThrowPropsPlugin.untrack(this.container.position)
|
||||
}, .8, .4)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user