]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/ui/gestures/gestures.factor
Merge branch 'master' into microseconds
[factor.git] / basis / ui / gestures / gestures.factor
index 2f7bee927bedefd55230a4ff27a3ad9df0fc2c4f..e4a600f252372dff9c4291d41a75de88b0c35ec8 100644 (file)
@@ -118,7 +118,7 @@ SYMBOL: scroll-direction
 { 0 0 } scroll-direction set-global
 
 SYMBOL: double-click-timeout
-300 double-click-timeout set-global
+300 milliseconds double-click-timeout set-global
 
 : hand-moved? ( -- ? )
     hand-loc get hand-click-loc get = not ;
@@ -199,7 +199,7 @@ SYMBOL: drag-timer
     hand-click-loc get-global swap screen-loc v- ;
 
 : multi-click-timeout? ( -- ? )
-    millis hand-last-time get - double-click-timeout get <= ;
+    now hand-last-time get time- double-click-timeout get before=? ;
 
 : multi-click-button? ( button -- button ? )
     dup hand-last-button get = ;
@@ -224,7 +224,7 @@ SYMBOL: drag-timer
             1 hand-click# set
         ] if
         hand-last-button set
-        millis hand-last-time set
+        now hand-last-time set
     ] bind ;
 
 : update-clicked ( -- )