mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-24 09:50:56 +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 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]) {
|
||||||
|
Reference in New Issue
Block a user