Bugs item #428106, was updated on 2001-05-28 17:10
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105757&aid=428106&group_id=5757
Category: DynAPI 2 Events
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Chris Williams (chriswil)
>Assigned to: Robert Rainwater (rainwater)
Summary: handleevent
Initial Comment:
As far as I can tell the handle event method only
takes one argument and that is the event that is being
passed. For some reason there is a handleevent
function in listeners.js that takes several
arguments. Because of this the onclick, onmousedown,
and onmouseup events are being lost for links, buttons
etc in NS4. The following lines in mouse.js:
if (is.ns4) {
if (e.cancelBubble) return false;
if (e && e.target.handleEvent &&
e.target!=this) e.target.handleEvent(type,e);
}
need to be replaced with these ones:
if (is.ns4) {
if (e.cancelBubble) return false;
if (e && e.target.handleEvent &&
e.target!=this) e.target.handleEvent(e);
}
and the following lines need to be removed:
if (is.ns4 && type=="mouseup") {
evt.type=type="click";
evt.bubble = true;
realsrc.invokeEvent(type,evt);
}
I'm not sure what modifications are required in
listeners.js
----------------------------------------------------------------------
Comment By: Richard Bennett (richard_bennett)
Date: 2001-05-29 01:03
Message:
Logged In: YES
user_id=164855
Hi,
I tried this, and it does solve the problem, although just
removing the parameter "type" seems to do the trick, I'm
not sure what the "mouseup" bit of code is, but it doesn't
seem to harm NS4 mouse events as far as I can see.
There's an example illustrating this bug here:
http://www.richardinfo.f2s.com/dynapi/Richard_Examples/NS_Mo
useevents.html
This hasn't been updated with this fix yet, and works fine
when it has.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105757&aid=428106&group_id=5757
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev