AnsweredAssumed Answered

Problems with "onPanEnd"

Question asked by sumpfsocke on Aug 28, 2012
Latest reply on Aug 30, 2012 by sumpfsocke

I am trying to create an application where I have two frames next to each other, where each frame contains a map. When I pan in one map, the other map should be re-centered accordingly. This re-centering is triggered using the onPanEnd event.

The problem is: This works most of the time, but the onPanEnd-event is not only triggered by the user, but also sometimes by the re-centering of the map itself (this is my guess); which then gives me an infinite loop of each frame re-centering the other.

I hope I explained my problem well enough.
Has somebody seen this before? or could give me any hints or tips on how to solve my problem?