mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-24 01:40:41 +02:00
Update App.tsx
This commit is contained in:
@@ -11161,11 +11161,11 @@ class App extends React.Component<AppProps, AppState> {
|
||||
// if not scrolling on canvas/wysiwyg, ignore
|
||||
if (
|
||||
!(
|
||||
event.target instanceof HTMLCanvasElement ||
|
||||
(event.target instanceof HTMLCanvasElement &&
|
||||
event.target.classList.contains("excalidraw__canvas")) ||
|
||||
event.target instanceof HTMLTextAreaElement ||
|
||||
event.target instanceof HTMLIFrameElement
|
||||
) ||
|
||||
this.state.activeEmbeddable?.state === "active"
|
||||
)
|
||||
) {
|
||||
// prevent zooming the browser (but allow scrolling DOM)
|
||||
if (event[KEYS.CTRL_OR_CMD]) {
|
||||
|
Reference in New Issue
Block a user