Update App.tsx

This commit is contained in:
zsviczian
2025-08-20 19:17:02 +02:00
committed by GitHub
parent 1098a0b909
commit 42fe6c2632

View File

@@ -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]) {