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