[mapguide-trac] #1242: Zoom with middle button does not work well with FireFox + Ajax View.

MapGuide Open Source trac_mapguide at osgeo.org
Tue Jan 12 21:10:57 EST 2010


#1242: Zoom with middle button does not work well with FireFox + Ajax View.
---------------------+------------------------------------------------------
 Reporter:  liuar    |         Owner:         
     Type:  defect   |        Status:  new    
 Priority:  low      |     Milestone:         
Component:  General  |       Version:  2.1.0  
 Severity:  trivial  |    Resolution:         
 Keywords:           |   External_id:  1292671
---------------------+------------------------------------------------------
Comment (by liuar):

 In ajaxmappane.templ line 3685, [[BR]]

 {{{
 wheelZoomCursor = new Point(msie ? event.clientX - mapPosX : event.screenX
 - mapPosX,
                         msie ? event.clientY : event.screenY);
 }}}
 [[BR]]

 event.clientX returns the horizontal coordinate within the application's
 client area at which the event occurred [[BR]]
 event.screenX returns the horizontal coordinate of the event within the
 screen as a whole.[[BR]]
 So, other browsers besides IE should also use event.clientX - mapPosX and
 event.clientY to indicate the cursor's position on map.

-- 
Ticket URL: <https://trac.osgeo.org/mapguide/ticket/1242#comment:2>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list