Hi,
I think (not sure) the code should read :
if (is.ns4 && is.platform=="other" && type=="mousedown") {
if (dynobject.dbltimer!=null) {
evt.type=type="dblclick";
evt.bubble = true;
realsrc.invokeEvent(type,evt);
}
else dynobject.dbltimer=setTimeout(dynobject+'.dbltimer=null',300);
}
I attached the complete file.(rename to mouse.js)
But I only have windows to test on.
The code measures the time between subsequent mousedowns, and invokes a
double-click if the time is less than 300ms.
apparently NS4/Linux doesn't have native double-click.
Also, the dynapi.event.dragevent.html example uses alerts to show the
events, so double click will not trigger sometimes, as an alert is open
during the second click.
I attached a modified version , using a textarea.
During testing on windows I found:
IE5.5 = works ok.
NS4= To many click events, others are ok.
NS6= ok, but a bit unpredictable.
If you can test whether double-click works in NS/Linux , we can submit this
as a patch if it's ok, otherwise as a bug.
Cheers,
Richard Bennett
[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to DynAPI2.53)
visit the DynAPI homepage (and FAQ) ::
http://dynapi.sourceforge.net/dynapi/index.php?menu=1
Browse (and search) the mailinglist here:
http://www.mail-archive.com/index.php3?hunt=dynapi
----- Original Message -----
From: "Matt Fair" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 13, 2001 3:22 AM
Subject: [Dynapi-Help] mouse.js
> As seen in
>
http://dynapi.sourceforge.net/snapshot/src/dynapi/examples/dynapi.event.drag
event.html,
>
> but happens when ever there is a mouse down event.
> when you click down on the red box an alert box pops up explaining there
>
> is an error in mouse.js on line 128.
> (is.ns4 && is.platform=="other" && type=="mousedown") {
> if (this.dbltimer!=null) {
> ...
> }
> else this.dbltimer=setTimeout(this+'.dbltimer=null',300); //LINE 128
> }
> As you can see, this only happens for ns4 and other platforms.
> Once the mouse is clicked down, this error does not show up. If you
> comment out line 128 the error does not happen, but what are the effects
>
> of that? What does dbltimer do?
> The past few releases has had this error in it so I thought I would see
> if anyone else has gotten this error.
> Thanks,
> Matt
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
Title: DynAPI Examples - Drag Event
mouse.jsRENAME