diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2010-10-29 11:40:39 +1000 |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2010-10-29 11:41:02 +1000 |
commit | 2f1726c4e10a6fbafb4953d68946d5501f5e0c8c (patch) | |
tree | a5bca0ccbe7393aa40f8e9d71e120fac5a8a9708 /demos/declarative/webbrowser/content/FlickableWebView.qml | |
parent | 85d8ead39ea03f55e140ce737839dbb203940b56 (diff) | |
download | qt4-tools-2f1726c4e10a6fbafb4953d68946d5501f5e0c8c.tar.gz |
Fix zooming in declarative webbrowser demo
Task-number:
Reviewed-by: Martin Jones
Diffstat (limited to 'demos/declarative/webbrowser/content/FlickableWebView.qml')
-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 6f4e09c522..a82a1514cf 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) } } |