Browse Source

fix: draw not working because mouse-down changes

Tienson Qin 4 years ago
parent
commit
a2f25518de
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/extensions/excalidraw.cljs

+ 1 - 1
src/main/frontend/extensions/excalidraw.cljs

@@ -71,7 +71,7 @@
         *elements (get state ::elements)
         file (:file option)]
     (when data
-      [:div.overflow-hidden
+      [:div.overflow-hidden {:on-mouse-down (fn [e] (util/stop e))}
        [:div.my-1 {:style {:font-size 10}}
         [:a.mr-2 {:on-click ui-handler/toggle-wide-mode!}
          (util/format "Wide Mode (%s)" (if wide-mode? "ON" "OFF"))]