From b73d532c3c1b2980616b2ba58e44b4ead8d2d616 Mon Sep 17 00:00:00 2001 From: prabhanshuguptagit Date: Fri, 12 Jan 2024 13:29:19 +0530 Subject: [PATCH] Disable click dragging on grid --- src/bean/ui/events.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bean/ui/events.cljs b/src/bean/ui/events.cljs index da0a969..d74ee59 100644 --- a/src/bean/ui/events.cljs +++ b/src/bean/ui/events.cljs @@ -71,7 +71,7 @@ (.addChild viewport container) (-> viewport (.clampZoom #js {:maxHeight 10000 :maxWidth 10000}) - (.drag #js {:clampWheel true}) + (.drag #js {:clampWheel true :pressDrag false}) (.wheel #js {:trackpadPinch true :wheelZoom false}) (.clamp #js {:direction "all"}))))