[OpenLayers-Users] oncontextmenu override in ie?

Wendell Turner wendell at enflight.com
Mon Jan 4 18:32:43 EST 2010


Is there a way to determine the mouse position in a
oncontextmenu function in IE?

It works fine in FireFox, since the oncontextmenu call in
FireFox has an event parameter which has layerX,layerY
properties.  That call in IE has no parameter, but the
window.event has x,y, clientX,clientY, screenX, screenY, and
offsetX, offsetY parameters, none of which seem to be
similar to layerX,Y.

Is there a way to use any of the above window.event x,y data
to calculate what the layerX,Y should be?

Thanks,

Wendell




More information about the Users mailing list