zsviczian vor 3 Wochen
Ursprung
Commit
42fe6c2632
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      packages/excalidraw/components/App.tsx

+ 3 - 3
packages/excalidraw/components/App.tsx

@@ -11161,11 +11161,11 @@ class App extends React.Component<AppProps, AppState> {
       // if not scrolling on canvas/wysiwyg, ignore
       // if not scrolling on canvas/wysiwyg, ignore
       if (
       if (
         !(
         !(
-          event.target instanceof HTMLCanvasElement ||
+          (event.target instanceof HTMLCanvasElement &&
+            event.target.classList.contains("excalidraw__canvas")) ||
           event.target instanceof HTMLTextAreaElement ||
           event.target instanceof HTMLTextAreaElement ||
           event.target instanceof HTMLIFrameElement
           event.target instanceof HTMLIFrameElement
-        ) ||
-        this.state.activeEmbeddable?.state === "active"
+        )
       ) {
       ) {
         // prevent zooming the browser (but allow scrolling DOM)
         // prevent zooming the browser (but allow scrolling DOM)
         if (event[KEYS.CTRL_OR_CMD]) {
         if (event[KEYS.CTRL_OR_CMD]) {