Ticket #1392 (closed feature: fixed)
panTween needs to be nullified
| Reported by: | pgiraud | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.6 Release |
| Component: | Map | Version: | 2.5 |
| Keywords: | Cc: | ||
| State: | Complete |
Description
Eric previously proposed we don't recreate a new Tween object each time we call panTo. But, this means that, with the current if conditions in moveTo(), panTween.stop() will be called even if not required. Attached patch fixes this by nullifying the panTween property.
One other solution would be to have a 'isPlaying' boolean property in the tween class and only call stop if isPlaying is true.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

