[fusion-commits] r1928 - trunk/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Fri Oct 2 13:57:46 EDT 2009
Author: madair
Date: 2009-10-02 13:57:46 -0400 (Fri, 02 Oct 2009)
New Revision: 1928
Modified:
trunk/widgets/Maptip.js
Log:
closes #232: add check for mouse position changed
Modified: trunk/widgets/Maptip.js
===================================================================
--- trunk/widgets/Maptip.js 2009-10-02 15:33:21 UTC (rev 1927)
+++ trunk/widgets/Maptip.js 2009-10-02 17:57:46 UTC (rev 1928)
@@ -49,7 +49,7 @@
Fusion.Widget.Maptip = OpenLayers.Class(Fusion.Widget, {
- oCurrentPosition: null,
+ oCurrentPosition: new OpenLayers.Pixel(0,0),
oMapTipPosition: null,
nTimer: null,
delay: null,
@@ -154,6 +154,9 @@
this.mapOffset = map._oDomObj.offsets;
var p = map.getEventPosition(e);
+ if (p.x == this.oCurrentPosition.x && p.y == this.oCurrentPosition.y ) {
+ return;
+ }
this.oCurrentPosition = p;
this.oMapTipPosition = p;
More information about the fusion-commits
mailing list