Fixes zoomBy with floats
This commit is contained in:
parent
f06bcdf695
commit
d2730d75bc
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue