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

OpenLayers trac-20090302 at openlayers.org
Fri Nov 5 08:35:45 EDT 2010


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

Comment(by erilem):

 > Yet, lots of time is spent in {{{getMousePosition}}} (w/ and w/o the
 patch), and it would be great to optimize that, I'm not sure it's possible
 though.

 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.

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


More information about the Trac mailing list