Răsfoiți Sursa

increase gesture activation threshold

llcc 3 ani în urmă
părinte
comite
6de6222645
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      src/main/frontend/handler/block.cljs

+ 2 - 2
src/main/frontend/handler/block.cljs

@@ -204,8 +204,8 @@
               (let [{:keys [x0 y0]} @*swipe
                     dx (- tx x0)
                     dy (- ty y0)]
-                (when (and (< (. js/Math abs dy) 20)
-                           (> (. js/Math abs dx) 10))
+                (when (and (< (. js/Math abs dy) 30)
+                           (> (. js/Math abs dx) 30))
                   (let [left (gdom/getElement (str "block-left-menu-" uuid))
                         right (gdom/getElement (str "block-right-menu-" uuid))]