Forráskód Böngészése

fix: Disable three finger pinch zoom in penMode (#4725)

zsviczian 3 éve
szülő
commit
98ea46664c
2 módosított fájl, 2 hozzáadás és 1 törlés
  1. 1 1
      src/components/App.tsx
  2. 1 0
      src/components/Toolbar.scss

+ 1 - 1
src/components/App.tsx

@@ -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;
     }
 

+ 1 - 0
src/components/Toolbar.scss

@@ -49,6 +49,7 @@
     .ToolIcon__hidden {
       box-shadow: none !important;
       background-color: transparent !important;
+      pointer-events: none !important;
     }
 
     .ToolIcon.ToolIcon__lock {