Skip to content

Commit 68717a9

Browse files
committed
BaseEffectContext: ignore MAX_POSITION if the tween is actively playing (closes #1827)
1 parent 3d4ec27 commit 68717a9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/feathers/motion/effectClasses/BaseEffectContext.as

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,10 @@ package feathers.motion.effectClasses
198198
*/
199199
public function set position(value:Number):void
200200
{
201-
if(value > MAX_POSITION)
201+
// there are some quirks with Starling tweens where we want to avoid
202+
// going all of the way to the end, unless the tween is currently
203+
// playing
204+
if(!this._playing && value > MAX_POSITION)
202205
{
203206
value = MAX_POSITION;
204207
}

0 commit comments

Comments
 (0)