Procházet zdrojové kódy

fix: can't right click the bullet

Tienson Qin před 5 roky
rodič
revize
3828f7d925

+ 2 - 1
src/main/frontend/components/block.cljs

@@ -1061,7 +1061,8 @@
         [:span ""])]
      [:a (if (not dummy?)
            {:href (rfe/href :page {:name uuid})
-            :on-click (fn [e] (bullet-on-click e block config uuid))})
+            :on-click (fn [e] (bullet-on-click e block config uuid))
+            :on-mouse-down (fn [e] (util/stop e))})
       [:span.bullet-container.cursor
        {:id (str "dot-" uuid)
         :draggable true

+ 0 - 6
src/main/frontend/components/block.css

@@ -316,11 +316,6 @@
   }
 }
 
-a > .bullet-container {
-  /* fix the bullet element sometimes becomes a click event */
-  pointer-events: none;
-}
-
 a:hover > .bullet-container .bullet {
   transform: scale(1.2);
 }
@@ -367,4 +362,3 @@ a:hover > .bullet-container .bullet {
 .embed-header {
   font-weight: 600;
 }
-