Ticket #3439 (new bug)

Opened 2 years ago

Last modified 23 months ago

Tween no stopping

Reported by: janise Owned by:
Priority: minor Milestone: 2.13 Release
Component: general Version: 2.10
Keywords: Cc: janise
State:

Description

I'm doing map resizing and panning simultaneously, which creates some kind of conflict when during the execution of Tween.start, Tween stop is executed (in my case it was while running the Tween.start callback).

Thus the "playing" is set to false even before "start" has initiated the playing with setInterval.

So, the playing will be never stopped, because "playing" is already false.

I have three quick solutions in mind: 1) Set the playing = true also at the end of "Tween.start" 2) Check the playing status before setting the play interval at the end of "Tween.start" 3) Abort the Tween.stop only if !playing and !interval, not just !playing.

Change History

Changed 23 months ago by erilem

  • type changed from feature to bug
  • milestone changed from 2.11 Release to 2.12 Release

I think I've already experienced the issue. But I'm still failing to understand how the problem can occur.

stop cannot occur in the middle of start} (no preemption). And if stop gets called right after start, that is before the first call to play, it should stop the animation (w/ clearInterval).

janise, it would be great if you could provide an actual case for the issue.

Also, this isn't a regression, so I'm moving this ticket out of the 2.11 Release milestone.

Note: See TracTickets for help on using tickets.