View Single Post
Old 03-09-2018, 08:08 AM   #430
mdp
Wizard
mdp ought to be getting tired of karma fortunes by now.mdp ought to be getting tired of karma fortunes by now.mdp ought to be getting tired of karma fortunes by now.mdp ought to be getting tired of karma fortunes by now.mdp ought to be getting tired of karma fortunes by now.mdp ought to be getting tired of karma fortunes by now.mdp ought to be getting tired of karma fortunes by now.mdp ought to be getting tired of karma fortunes by now.mdp ought to be getting tired of karma fortunes by now.mdp ought to be getting tired of karma fortunes by now.mdp ought to be getting tired of karma fortunes by now.
 
Posts: 1,481
Karma: 9010563
Join Date: Jul 2013
Device: none
Quote:
Originally Posted by mdp View Post
The two clicks of the double-click action must be in very near coordinates...
We actually have a way to facilitate double-tap as double-click:
-- store details the last "down (= 0)" event: x, y and t(imestamp);
-- if down and this_ts-last_down_ts<1000ms and abs( this_x-last_down_x )<50px and abs( this_y-last_down_y )<50px then this_x = last_down_x , this_y = last_down_y
You get the pseudocode.
mdp is offline   Reply With Quote