diff options
Diffstat (limited to 'demos/declarative/webbrowser/webbrowser.qml')
-rw-r--r-- | demos/declarative/webbrowser/webbrowser.qml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/declarative/webbrowser/webbrowser.qml b/demos/declarative/webbrowser/webbrowser.qml index bfc0749..105bb07 100644 --- a/demos/declarative/webbrowser/webbrowser.qml +++ b/demos/declarative/webbrowser/webbrowser.qml @@ -222,6 +222,8 @@ Item { onDoubleClick: { if (!heuristicZoom(clickX,clickY,2.5)) { var zf = flickable.width > 980 ? 1 : flickable.width/980; + if (zf > zoomFactor) + zf = 2.0 // zoom in (else zooming out) doZoom(zf,clickX/zoomFactor*zf,clickY/zoomFactor*zf) } } |