Bug 84456 - [Qt] Multi-level tap-to-zoom
Summary: [Qt] Multi-level tap-to-zoom
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Allan Sandfeld Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-20 08:51 PDT by Allan Sandfeld Jensen
Modified: 2012-04-22 09:43 PDT (History)
3 users (show)

See Also:


Attachments
Patch (4.79 KB, patch)
2012-04-20 08:54 PDT, Allan Sandfeld Jensen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Allan Sandfeld Jensen 2012-04-20 08:51:06 PDT
The current zoom-out feature of tap-to-zoom makes it impossible to zoom in to progressively smaller areas.

We need a way to both allow refining zoom and detecting zoom-out gesture.
Comment 1 Allan Sandfeld Jensen 2012-04-20 08:54:32 PDT
Created attachment 138101 [details]
Patch
Comment 2 Kenneth Rohde Christiansen 2012-04-20 09:06:50 PDT
Comment on attachment 138101 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=138101&action=review

> Source/WebKit2/ChangeLog:12
> +        Replace tap-to-zoomed flag with a stack of progressively higher zoom levels, 
> +        and zoom out to last zoom-level when attempting to zoom to current level.
> +        
> +        Additionally detect a series of tap-to-zoom gestures on the same level and 
> +        continue to zoom out.

I wonder how well this works in practise... let\s see

> Source/WebKit2/UIProcess/qt/QtViewportInteractionEngine.cpp:373
> +        // Zoom back out if attempting to scale to the same current scale, or
> +        // attempting to continue scaling out from the inner most level.

This is not exactly what we want, it depends on whether we have a position change (larger/smaller than a treshold) as well. It is kind of common to scroll on ios by double tapping when zoomed in, as it will scroll and be perfectly aligned
Comment 3 Allan Sandfeld Jensen 2012-04-21 06:33:25 PDT
(In reply to comment #2)
> (From update of attachment 138101 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=138101&action=review
> 
> > Source/WebKit2/ChangeLog:12
> > +        Replace tap-to-zoomed flag with a stack of progressively higher zoom levels, 
> > +        and zoom out to last zoom-level when attempting to zoom to current level.
> > +        
> > +        Additionally detect a series of tap-to-zoom gestures on the same level and 
> > +        continue to zoom out.
> 
> I wonder how well this works in practise... let\s see
> 
> > Source/WebKit2/UIProcess/qt/QtViewportInteractionEngine.cpp:373
> > +        // Zoom back out if attempting to scale to the same current scale, or
> > +        // attempting to continue scaling out from the inner most level.
> 
> This is not exactly what we want, it depends on whether we have a position change (larger/smaller than a treshold) as well. It is kind of common to scroll on ios by double tapping when zoomed in, as it will scroll and be perfectly aligned

Yeah, I am getting to that part :) I am just adding one feature at a time and making sure it works. 

This patch is intended to be a similar but improved version of what we do on the N9.

Next up is checking if the double-click should move instead of zooming, but if possible I would like to handle that in a separate bug.
Comment 4 WebKit Review Bot 2012-04-22 09:43:45 PDT
Comment on attachment 138101 [details]
Patch

Clearing flags on attachment: 138101

Committed r114857: <http://trac.webkit.org/changeset/114857>
Comment 5 WebKit Review Bot 2012-04-22 09:43:49 PDT
All reviewed patches have been landed.  Closing bug.