summaryrefslogtreecommitdiff
path: root/demos/declarative/webbrowser/content/FlickableWebView.qml
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2010-10-29 11:40:39 +1000
committerJoona Petrell <joona.t.petrell@nokia.com>2010-10-29 11:41:02 +1000
commit2f1726c4e10a6fbafb4953d68946d5501f5e0c8c (patch)
treea5bca0ccbe7393aa40f8e9d71e120fac5a8a9708 /demos/declarative/webbrowser/content/FlickableWebView.qml
parent85d8ead39ea03f55e140ce737839dbb203940b56 (diff)
downloadqt4-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.qml2
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)
}
}