[OpenLayers-Commits] r4230 - trunk/openlayers/lib/OpenLayers/Handler

commits at openlayers.org commits at openlayers.org
Wed Sep 12 00:19:02 EDT 2007


Author: crschmidt
Date: 2007-09-12 00:18:59 -0400 (Wed, 12 Sep 2007)
New Revision: 4230

Modified:
   trunk/openlayers/lib/OpenLayers/Handler/Drag.js
Log:
fix for 'map elements are selected in IE when using shift key' in drag
handler from pierre.
Confirmed that this can be tested simply by using anything with a drag handler
in IE, so it will get caught in acceptance test. 
(Closes #792)


Modified: trunk/openlayers/lib/OpenLayers/Handler/Drag.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Handler/Drag.js	2007-09-12 04:00:31 UTC (rev 4229)
+++ trunk/openlayers/lib/OpenLayers/Handler/Drag.js	2007-09-12 04:18:59 UTC (rev 4230)
@@ -153,6 +153,12 @@
             this.down(evt);
             this.callback("down", [evt.xy]);
             OpenLayers.Event.stop(evt);
+            
+            if(!this.oldOnselectstart) {
+                this.oldOnselectstart = document.onselectstart;
+                document.onselectstart = function() {return false;}
+            }
+            
             return false;
         }
         return true;



More information about the Commits mailing list