Bugs item #425303, was updated on 2001-05-18 13:25 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105757&aid=425303&group_id=5757 Category: DynAPI 2 Browser-Specific Group: None Status: Open Resolution: None Priority: 5 Submitted By: J� (z_yniker) Assigned to: Nobody/Anonymous (nobody) Summary: JS Error in dynapi/event/mouse.js Initial Comment: Many dynapi examples throw a JavaScript error on my Netscape 4.77 / Linux: Error in file: http://.../lib/dynapi/event/mouse.js Line number: 128 Message: syntax error For example this happens when I move a scrollbar in the dynapi.gui.scrollbar.html example. After closing the error message window, everything seems to work well nevertheless. ---------------------------------------------------------------------- >Comment By: J� (z_yniker) Date: 2001-05-20 01:32 Message: Logged In: YES user_id=222899 Hi, I applied the changes you suggestet, and yes: it works under Linux! Great! I also tested with the Mouse Events Example Script and everything seems to work ok. Double klicks are recognzied correclty. Thanks for this quick fix! ---------------------------------------------------------------------- Comment By: Richard Bennett (richard_bennett) Date: 2001-05-19 13:58 Message: Logged In: YES user_id=164855 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); } 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 have a modified version , using a textarea. if you need. 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 someone could test on Linux... ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105757&aid=425303&group_id=5757 _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/dynapi-dev
