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