[OpenLayers-Trac] Re: [OpenLayers] #2591: mousedown event handler method fails to call checkModifiers

OpenLayers trac-20090302 at openlayers.org
Sat Dec 4 13:52:08 EST 2010


#2591: mousedown event handler method fails to call checkModifiers
--------------------------+-------------------------------------------------
 Reporter:  tarmath       |       Owner:  tschaub     
     Type:  bug           |      Status:  new         
 Priority:  minor         |   Milestone:  2.11 Release
Component:  Handler.Path  |     Version:  2.8         
 Keywords:  keyMask       |       State:              
--------------------------+-------------------------------------------------

Comment(by mgleahy):

 I've run into this problem as well (in 2.10).  I think this also needs to
 be added to the mouseup event in the Path handler.  I my own solution,
 I've created subclasses that also include this for the click event in the
 Point handler, and the dblclick event for the Path/Polygon handlers.

 I've also included a check for the rightclick event:

 [CODE]
          // check keyboard modifiers
          if(!this.checkModifiers(evt) ||
 !OpenLayers.Event.isRightClick(evt)) {
              return true;
          }
 [/CODE]

-- 
Ticket URL: <http://trac.openlayers.org/ticket/2591#comment:1>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list