OpenLayers OpenLayers

Changeset 5697

Show
Ignore:
Timestamp:
01/09/08 04:50:21 (1 year ago)
Author:
tschaub
Message:

Giving the drag handler a stopDown property. Set this to true in the constructor options to let mousedown events propagate. r=crschmidt (closes #1247)

Files:

Legend:

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

    r5614 r5697  
    3737    started: false, 
    3838     
     39    /** 
     40     * Property: stopDown 
     41     * {Boolean} Stop propagation of mousedown events from getting to listeners 
     42     *     on the same element.  Default is true. 
     43     */ 
     44    stopDown: true, 
     45 
    3946    /**  
    4047     * Property: dragging  
     
    165172            } 
    166173             
    167             propagate = false
     174            propagate = !this.stopDown
    168175        } else { 
    169176            this.started = false;