diff --git a/aqt/webview.py b/aqt/webview.py index cf551e100..14778774a 100644 --- a/aqt/webview.py +++ b/aqt/webview.py @@ -92,6 +92,14 @@ class AnkiWebView(QWebEngineView): context=Qt.WidgetWithChildrenShortcut, activated=fn) + self.focusProxy().installEventFilter(self) + + def eventFilter(self, obj, evt): + # disable pinch to zoom gesture + if isinstance(evt, QNativeGestureEvent): + return True + return False + def onEsc(self): w = self.parent() while w: