Multiple-click events

kimtopley at gmail.com kimtopley at gmail.com
Fri Apr 27 08:23:57 PDT 2012


Would it be possible to make this configurable, maybe at the Scene level? In some cases, a single click is all that's required and the delay waiting for a second click that means nothing more to the application is unnecessary. 


Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: Pavel Safrata <pavel.safrata at oracle.com>
Sender: openjfx-dev-bounces at openjdk.java.net
Date: Fri, 27 Apr 2012 17:17:10 
To: openjfx-dev at openjdk.java.net<openjfx-dev at openjdk.java.net>
Cc: VIENOT, SIMON<simon.vienot at oracle.com>; Alexander Kouznetsov<alexander.kouznetsov at oracle.com>; Richard Bair<Richard.Bair at oracle.com>
Subject: Multiple-click events

Hello,
currently we deliver MOUSE_CLICKED event any time a node was pressed and 
released by mouse; if the next press happens fast enough and near 
enough, we increase the clickCount number for the events. There are 
requests to make a standalone single-click distinguishable from a first 
click of a double-click (and so on).

After some discussion we concluded that the cleanest approach would be 
somewhat backward incompatible - we propose to generate the click event 
only when we are sure that there is no next click. In other words, the 
partial clicks would not be delivered at all, the final click would be a 
bit delayed. The pressed/released events would of course be still 
delivered normally, with the correct clickCount value.

Any objections?

Thanks,
Pavel



More information about the openjfx-dev mailing list