OpenLayers OpenLayers

Changeset 4230

Show
Ignore:
Timestamp:
09/12/07 00:18:59 (1 year ago)
Author:
crschmidt
Message:

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)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Handler/Drag.js

    r4147 r4230  
    154154            this.callback("down", [evt.xy]); 
    155155            OpenLayers.Event.stop(evt); 
     156             
     157            if(!this.oldOnselectstart) { 
     158                this.oldOnselectstart = document.onselectstart; 
     159                document.onselectstart = function() {return false;} 
     160            } 
     161             
    156162            return false; 
    157163        }