Opened 15 years ago
Closed 15 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 , 15 years ago
comment:2 by , 15 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 , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
It seems that only IE works fine when Zoom with middle button. Chrome and Safari also has this kind of problem.