OpenLayers OpenLayers

Changeset 5945

Show
Ignore:
Timestamp:
01/30/08 18:16:36 (1 year ago)
Author:
tcoulter
Message:

Made the point handler respond (ie, add the point) when both a click or a mouseup was called.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/topp/nymap/lib/OpenLayers/Handler/Point.js

    r5895 r5945  
    3838     */ 
    3939    useTemporaryLayer: true, 
    40      
    41     /** 
    42      * Property: mouseDown 
    43      * {Boolean} The mouse is down 
    44      */ 
    45     mouseDown: false, 
    4640 
    4741    /** 
     
    161155    finalize: function() { 
    162156        this.layer.eraseFeatures(this.point); 
    163         this.mouseDown = false; 
    164157        this.lastDown = null; 
    165158        this.lastUp = null; 
     
    174167    cancel: function() { 
    175168        this.layer.eraseFeatures(this.point); 
    176         this.mouseDown = false; 
    177169        this.lastDown = null; 
    178170        this.lastUp = null; 
     
    282274     */ 
    283275    mouseup: function (evt) { 
    284          
     276        this.finalize(); 
     277 
     278        return false; 
    285279    }, 
    286280