On 12-04-20 8:48 AM, "Doug Arthur" <dougart...@gmail.com> wrote:
>On Fri, Apr 20, 2012 at 9:43 AM, andrei apostolache ><apostolache.and...@gmail.com> wrote: >> Hi Scott, >> >> Is not about a new component, it's about all spark components that are >> based on UIComponent. Think for example a simple spark button, <s:Button >> click="doSomething()" doubleClick="doSomethingElse()" >> doubleClickEnabled="true" /> if you will try to double click the button >> first it will trigger doSomething() and then doSomethingElse(), while >>the >> expectation would be: click received (should obfuscate it for 300 ms to >>see >> if the user is going for a double click), if second click happens >>trigger >> doSomethingElse(), otherwise trigger doSomething(). > >The problem you have with a timer, is the speed at wich individuals >set their double click at the OS level. I've had to use that same >trick before as well, but if someone has a slower (i.e 500ms) double >click rate, then you run into the same problem of doSomething() >getting called before doSomethingElse() gets called. I'd hate to bake >that into the SDK, since there's no "standard" speed at which double >click is performed. Of course, unless we surface the ability to change >that rate, which is a valid option. Unless someone else has a better >solution??? > >- Doug I worked with this a bit. The maximum TO is usually 500 MS. Note that the click event itself is fired when the mouse user releases the button, not on the down click itself. Is there a public API in the runtime to grab the double-click delay time from the users system? Duane ****************** COO and Director Uberity Technology Corporation "LiveCycle ES and Mobile Specialists" http://www.uberity.com @uberity @duanechaos >