I was just reading about the way that NS4 deals with events and
discovered the following....

NS4 events are triggered from the browser down.  This means that if we
are intercepting the events (such as click and mousedown) the events
will never reach the HTML elements within a layer ('<A>' tags for
example).

There is a way to allow these elements to receive the events even though
they are being captured using routeEvent().

I have inserted the following line in mouse.js (after the invoke event):

// Invoke the event
realsrc.invokeEvent(type,evt);
if (is.ns4 && (type=="mouseup"||type=="mousedown"||type=="click"))
routeEvent(e);

Now all the onclicks and onmousedowns are being triggered and the events
are still being captured.  The only problem I have now is that events
appear to be being captured (or triggered) twice.

Could someone with a better knowledge of mouse.js help me debug this
further.  Also if this posting is more appropriate for the dev list I
apoplogise.

Cheers

Chris Williams


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to