Fixes zoomBy with floats

This commit is contained in:
Manuito83 2022-03-06 14:59:14 +01:00
parent f06bcdf695
commit d2730d75bc
1 changed files with 1 additions and 1 deletions

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!["iosAnimated"] as! Bool let animated = arguments!["iosAnimated"] as! Bool
webView?.zoomBy(zoomFactor: zoomFactor, animated: animated) webView?.zoomBy(zoomFactor: zoomFactor, animated: animated)
result(true) result(true)