diff --git a/android/src/toga_android/widgets/webview.py b/android/src/toga_android/widgets/webview.py index 25dcbda30d..36ef662ed5 100644 --- a/android/src/toga_android/widgets/webview.py +++ b/android/src/toga_android/widgets/webview.py @@ -41,6 +41,9 @@ def create(self): self.settings = self.native.getSettings() self.default_user_agent = self.settings.getUserAgentString() self.settings.setJavaScriptEnabled(True) + # enable pinch-to-zoom without the deprecated on-screen controls + self.settings.setBuiltInZoomControls(True) + self.settings.setDisplayZoomControls(False) def get_url(self): url = self.native.getUrl() diff --git a/changes/2261.misc.rst b/changes/2261.misc.rst new file mode 100644 index 0000000000..9405bcd73e --- /dev/null +++ b/changes/2261.misc.rst @@ -0,0 +1 @@ +The pinch-to-zoom feature has been added to WebView on Android.