[fusion-commits] r2175 - sandbox/jxlib-3.0/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Mon May 31 14:06:47 EDT 2010
Author: madair
Date: 2010-05-31 14:06:45 -0400 (Mon, 31 May 2010)
New Revision: 2175
Modified:
sandbox/jxlib-3.0/widgets/LayerManager.js
Log:
cross-browser fix for cursor handling #moreIEgoodness
Modified: sandbox/jxlib-3.0/widgets/LayerManager.js
===================================================================
--- sandbox/jxlib-3.0/widgets/LayerManager.js 2010-05-31 15:31:39 UTC (rev 2174)
+++ sandbox/jxlib-3.0/widgets/LayerManager.js 2010-05-31 18:06:45 UTC (rev 2175)
@@ -232,15 +232,18 @@
},
setGrabCursor: function(ev) {
- this.setCursor(this.cursorDrag, ev.currentTarget.parentNode);
+ var targetLI = (new Event(ev)).target.parentNode;
+ this.setCursor(this.cursorDrag, targetLI);
},
setDragCursor: function(ev) {
- this.setCursor(this.cursorDrag, ev.currentTarget.parentNode);
+ var targetLI = (new Event(ev)).target.parentNode;
+ this.setCursor(this.cursorDrag, targetLI);
},
setNormalCursor: function(ev) {
- this.setCursor('auto', ev.currentTarget.parentNode);
+ var targetLI = (new Event(ev)).target.parentNode;
+ this.setCursor('auto', targetLI);
},
setCursor: function(cursor, domObj) {
More information about the fusion-commits
mailing list