Parcourir la source

docs: prevent touch so that pointermove works in touch devices (#5241)

Aakansha Doshi il y a 3 ans
Parent
commit
aabcdc20fd
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/packages/excalidraw/example/App.js

+ 1 - 0
src/packages/excalidraw/example/App.js

@@ -325,6 +325,7 @@ export default function App() {
             width: `${COMMENT_ICON_DIMENSION}px`,
             height: `${COMMENT_ICON_DIMENSION}px`,
             cursor: "pointer",
+            touchAction: "none",
           }}
           className="comment-icon"
           onPointerDown={(event) => {