Skip to content

Commit

Permalink
fix: Disable three finger pinch zoom in penMode (excalidraw#4725)
Browse files Browse the repository at this point in the history
  • Loading branch information
zsviczian authored Feb 6, 2022
1 parent 00e30ca commit 98ea466
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1932,7 +1932,7 @@ class App extends React.Component<AppProps, AppState> {
// zoom in at the right location on the touchMove handler already.
// On Macbook, we don't have those events so will zoom in at the
// current location instead.
if (gesture.pointers.size === 2) {
if (gesture.pointers.size >= 2) {
return;
}

Expand Down
1 change: 1 addition & 0 deletions src/components/Toolbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
.ToolIcon__hidden {
box-shadow: none !important;
background-color: transparent !important;
pointer-events: none !important;
}

.ToolIcon.ToolIcon__lock {
Expand Down

0 comments on commit 98ea466

Please sign in to comment.