[OpenLayers-Trac] [OpenLayers] #3439: Tween no stopping

OpenLayers trac-20090302 at openlayers.org
Tue Jul 26 08:15:09 EDT 2011


#3439: Tween no stopping
---------------------+------------------------------------------------------
 Reporter:  janise   |       Owner:              
     Type:  feature  |      Status:  new         
 Priority:  minor    |   Milestone:  2.11 Release
Component:  general  |     Version:  2.10        
 Keywords:           |       State:              
---------------------+------------------------------------------------------
 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.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3439>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list