[OpenLayers-Trac] Re: [OpenLayers] #2247: getMousePosition off due to borders and relative/absolute positioning

OpenLayers trac-20090302 at openlayers.org
Fri Nov 5 09:33:25 EDT 2010


#2247: getMousePosition off due to borders and relative/absolute positioning
--------------------------------+-------------------------------------------
  Reporter:  chrelad@…          |       Owner:  euzuro                                                                           
      Type:  bug                |      Status:  closed                                                                           
  Priority:  critical           |   Milestone:  2.11 Release                                                                     
 Component:  Events             |     Version:  2.8                                                                              
Resolution:  fixed              |    Keywords:  mouse position getMousePosition offset click coordinates border relative position
     State:  Complete           |  
--------------------------------+-------------------------------------------

Comment(by erilem):

 > And for the record, lots of time is spent in {{{getMousePosition}}}
 because it's called many times when panning, and not because it's
 particularly inefficient, so optimizing wouldn't be easy.

 See #2880 for an optimization.

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


More information about the Trac mailing list