Opened 13 years ago

Closed 13 years ago

#424 closed defect (fixed)

IE9 beta:use addEventListener to monitor "contextmenu" event will lost mouseEvent information

Reported by: yangte Owned by: yangte
Priority: P3 Milestone: Future
Component: MapGuide Version: 2.2 - RC1
Severity: Minor Keywords: IE9, contextmenu
Cc: Browser: Other
External ID: Operating System: Windows
state: New

Description

In IE9 beta, I use these codes to monitor the "contextmenu" event , and I find that the type of e is [Object, Event] instead of [Object,mouseEvent],

can someone tell me it is a defect of ie9 beta.

button.addEventListener("contextmenu", function (e) {,

debugger; alert(e.clientX);

}, true);

the debugger tells me that e.clientX is Undefined.

I think it's a defect of IE9 beta, and I have already submit this defect to the IE9 develope team.

I suggest a workaround to add this line of code: e=window.event?window.event:e;

to the map.js

Change History (1)

comment:1 by yangte, 13 years ago

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