diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2010-10-29 01:40:39 (GMT) |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2010-10-29 01:41:02 (GMT) |
commit | 2f1726c4e10a6fbafb4953d68946d5501f5e0c8c (patch) | |
tree | a5bca0ccbe7393aa40f8e9d71e120fac5a8a9708 /demos | |
parent | 85d8ead39ea03f55e140ce737839dbb203940b56 (diff) | |
download | Qt-2f1726c4e10a6fbafb4953d68946d5501f5e0c8c.zip Qt-2f1726c4e10a6fbafb4953d68946d5501f5e0c8c.tar.gz Qt-2f1726c4e10a6fbafb4953d68946d5501f5e0c8c.tar.bz2 |
Fix zooming in declarative webbrowser demo
Task-number:
Reviewed-by: Martin Jones
Diffstat (limited to 'demos')
-rw-r--r-- | demos/declarative/webbrowser/content/FlickableWebView.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/declarative/webbrowser/content/FlickableWebView.qml b/demos/declarative/webbrowser/content/FlickableWebView.qml index 6f4e09c..a82a151 100644 --- a/demos/declarative/webbrowser/content/FlickableWebView.qml +++ b/demos/declarative/webbrowser/content/FlickableWebView.qml @@ -128,7 +128,7 @@ Flickable { if (!heuristicZoom(clickX,clickY,2.5)) { var zf = flickable.width / contentsSize.width if (zf >= contentsScale) - zf = 2.0/zoomFactor // zoom in (else zooming out) + zf = 2.0*contentsScale // zoom in (else zooming out) doZoom(zf,clickX*zf,clickY*zf) } } |