ok, i see, this fixes the problem.
sorry for beeing a bit outdated.

i closed the patch.

--
Michael Buerge

> this was actually change recently so that the dbltimer is attached to the
> dynobject
> that caused the event.  this meant that two clicks on separate layers cannot
> be
> misinterpreted as a double click.
> 
> check the latest cvs code to see the specific changes.
> 
> [EMAIL PROTECTED] wrote:
> 
>> Patches item #432135, was updated on 2001-06-09 20:43
>> You can respond by visiting:
>> http://sourceforge.net/tracker/?func=detail&atid=305757&aid=432135&group_id=5
>> 757
>> 
>> Category: DynAPI 2 Event
>> Group: None
>> Status: Open
>> Resolution: None
>> Priority: 5
>> Submitted By: Michael Buerge (mibuerge)
>> Assigned to: Nobody/Anonymous (nobody)
>> Summary: DynMouseEvent.EventMethod
>> 
>> Initial Comment:
>> There's a bug in the DynMouseEvent.EventMethod on
>> UNIX-systems (tested on a Linux and a Solaris machine).
>> 
>> JavaScript Error:
>> http://cgi.ethz.ch/~mibuerge/dynapi/lib/dynapi/event/mouse.js,
>> line 134: syntax error.
>> dbltimer=null
>> ^
>> 
>> That line is saying:
>> else
>> this.dbltimer=setTimeout(this+'.dbltimer=null',300);
>> 
>> The strange thing is that it happens just once, then it
>> works. My attempt to explain this, is that the 'this'
>> inside the timeout evaluates to something strange. I
>> hope somebody knows it better.
>> 
>> Anyway: I can come with the following to fix the
>> problem (by attaching the .dbltimer-property directly
>> to DynMouseEvent):
>> lines 129 - 134:
>> if (DynMouseEvent.dbltimer!=null) {
>> evt.type=type="dblclick";
>> evt.bubble = true;
>> realsrc.invokeEvent(type,evt);
>> }
>> else
>> DynMouseEvent.dbltimer=setTimeout('DynMouseEvent.dbltimer=null',300);
>> 
>> --
>> Michael Buerge
>> 
>> ----------------------------------------------------------------------
>> 
>> You can respond by visiting:
>> http://sourceforge.net/tracker/?func=detail&atid=305757&aid=432135&group_id=5
>> 757
>> 
>> _______________________________________________
>> Dynapi-Dev mailing list
>> [EMAIL PROTECTED]
>> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> 
> --
> Michael Pemberton
> [EMAIL PROTECTED]
> ICQ: 12107010
> 
> 


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

Reply via email to