fluttercommunity / flutter_webview_plugin

Community WebView Plugin - Allows Flutter to communicate with a native WebView.
https://pub.dev/packages/flutter_webview_plugin
Other
1.48k stars 932 forks source link

Disable scrolling or touch input? #689

Open jockebq opened 4 years ago

jockebq commented 4 years ago

Is it possible to either disable input completely in flutter_webview_plugin or alternatively disable scrolling and zoom?

withZoom: false does not do anything for me?

jockebq commented 4 years ago

Update: It seems like this issue is only on iOS. On Android it does disable zoom with withZoom: false but not on iOS?

shinriyo commented 4 years ago

Not work!

shinriyo commented 4 years ago

@fluttercommunity can you fix it?

shinriyo commented 4 years ago
self.webview.scrollView.bounces = false;

in lib/flutter_webview_plugin/ios/Classes/FlutterWebviewPlugin.m