> [EMAIL PROTECTED] schrieb: >> Sebastian Werner <[EMAIL PROTECTED]> writes: >> >>> Daniel Dumitrescu schrieb: >>>> I need to differentiate the "click" and "dblclick" events on the same >>>> QxAtom widget. I saw that on "dblclick" mouse event the "click" event >>>> is >>>> generated twice and i need to have different behavior on these two >>>> mouse >>>> events. >>> There is a special dblclick event, too. I am sorry, but we have no >>> possibility to hide these click events as for the first click the >>> system >>> don't already know if this will be a dblclick later. >> >> The operating system distinguishes these with a (configurable) timer. >> No >> event is generated upon an initial click until the timer has expired or >> another click arrives. If another click arrives within the timeout >> period, >> then a doubleclick event is generated. Otherwise, when the timer for >> the >> initial click expires without another click arriving, a singleclick >> event is >> generated. Qooxdoo could do the same thing to provide both types of >> events. > > Yes, theoretically we could implement this in qooxdoo. But it is not > possible with the native event system in javascript (as this fires > click-click-dblclick). We need again to patch against the native events > to handle this.
Are you certain of this? I have a fair few apps for IE and Firefox that catch the click and dblclick events. The click handler isn't fired upon double click. For example, in one hand-coded app I have a tree widget. A single-click on a node causes the widget to update it's internally stored "current value". The dblclick event handler causes the tree to close (the tree is in a pop-up DIV) and to call the function that another part of the app has registered. Best regards, Chris > > If there are enough interested users, I will put this on our TODO list. > Even better would be a patch against QxEventManager.js ;) > > Sebastian > >> >> Derrell >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. Do you grep through log >> files >> for problems? Stop! Download the new AJAX search engine that makes >> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 >> _______________________________________________ >> Qooxdoo-devel mailing list >> Qooxdoo-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Qooxdoo-devel mailing list > Qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Qooxdoo-devel mailing list Qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel