Merge branch 'Manuito83-manuito-zoomBy' into develop

This commit is contained in:
Lorenzo Pichilli 2022-04-17 17:20:26 +02:00
commit 485b35e748

View File

@ -289,7 +289,7 @@ public class InAppWebViewMethodHandler: FlutterMethodCallDelegate {
result(webView?.getContentHeight()) result(webView?.getContentHeight())
break break
case "zoomBy": case "zoomBy":
let zoomFactor = arguments!["zoomFactor"] as! Float let zoomFactor = (arguments!["zoomFactor"] as! NSNumber).floatValue
let animated = arguments!["animated"] as! Bool let animated = arguments!["animated"] as! Bool
webView?.zoomBy(zoomFactor: zoomFactor, animated: animated) webView?.zoomBy(zoomFactor: zoomFactor, animated: animated)
result(true) result(true)