Virtual whiteboard for sketching hand-drawn like diagrams
fix pinch zoom (#885)
David Luzar463854e42ac7
diff --git a/src/components/App.tsx b/src/components/App.tsxindex 4c54745881..e3b63b6df7 100644--- a/src/components/App.tsx+++ b/src/components/App.tsx@@ -1769,7 +1769,8 @@ export class App extends React.Component<any, AppState> {event.preventDefault();const { deltaX, deltaY } = event;- if (event[KEYS.CTRL_OR_CMD]) {+ // note that event.ctrlKey is necessary to handle pinch zooming+ if (event.metaKey || event.ctrlKey) {const sign = Math.sign(deltaY);const MAX_STEP = 10;let delta = Math.abs(deltaY);