OpenLayers OpenLayers

Changeset 3042

Show
Ignore:
Timestamp:
04/10/07 06:35:16 (2 years ago)
Author:
crschmidt
Message:

Minor change to change default post-drag styling from 'default' to . This allows
CSS-based styling of the cursor on the map, rather than forcing 'default' after every
action. Tested in Safari, Opera, Firefox, IE7. Patch from Andreas Hocevar, #635. Thanks!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Control/MouseDefaults.js

    r2938 r3042  
    182182        document.onselectstart=null; 
    183183        this.mouseDragStart = null; 
    184         this.map.div.style.cursor = "default"; 
     184        this.map.div.style.cursor = ""; 
    185185    }, 
    186186 
  • trunk/openlayers/lib/OpenLayers/Control/MouseToolbar.js

    r2939 r3042  
    240240                    break; 
    241241                default: 
    242                     this.map.div.style.cursor = "default"; 
     242                    this.map.div.style.cursor = ""; 
    243243                    break; 
    244244            } 
  • trunk/openlayers/lib/OpenLayers/Control/PanZoomBar.js

    r2965 r3042  
    229229        if (!OpenLayers.Event.isLeftClick(evt)) return; 
    230230        if (this.zoomStart) { 
    231             this.div.style.cursor="default"; 
     231            this.div.style.cursor=""; 
    232232            this.map.events.unregister("mouseup", this, this.passEventToSlider); 
    233233            this.map.events.unregister("mousemove", this, this.passEventToSlider); 
  • trunk/openlayers/lib/OpenLayers/Handler/Box.js

    r2955 r3042  
    100100 
    101101        // TBD: use CSS classes instead 
    102         this.map.div.style.cursor = "default"; 
     102        this.map.div.style.cursor = ""; 
    103103 
    104104        this.callback("done", [result]); 
  • trunk/openlayers/lib/OpenLayers/Handler/Drag.js

    r3039 r3042  
    9696            this.dragging = false; 
    9797            // TBD replace with CSS classes 
    98             this.map.div.style.cursor = "default"; 
     98            this.map.div.style.cursor = ""; 
    9999            this.callback("up", [evt.xy]); 
    100100            document.onselectstart = this.oldOnselectstart; 
     
    114114            this.dragging = false; 
    115115            // TBD replace with CSS classes 
    116             this.map.div.style.cursor = "default"; 
     116            this.map.div.style.cursor = ""; 
    117117            this.callback("out", []); 
    118118            if(document.onselectstart) {