Opened 14 years ago

Closed 14 years ago

#1242 closed defect (fixed)

Zoom with middle button does not work well with FireFox + Ajax View.

Reported by: liuar Owned by:
Priority: low Milestone:
Component: General Version: 2.1.0
Severity: trivial Keywords:
Cc: External ID: 1292671

Description

Zoom with middle button does not work well with FireFox + Ajax View. It should work well as IE

Change History (3)

comment:1 by liuar, 14 years ago

It seems that only IE works fine when Zoom with middle button. Chrome and Safari also has this kind of problem.

comment:2 by liuar, 14 years ago

In ajaxmappane.templ line 3685,

wheelZoomCursor = new Point(msie ? event.clientX - mapPosX : event.screenX - mapPosX,
        		msie ? event.clientY : event.screenY);


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

comment:3 by liuar, 14 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.