| Summary: | [EFL][WK2] Minibrowser : Support Zoom on Control key + scroll | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Tanay <tanay.c> | ||||||
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | commit-queue | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Tanay
2014-09-11 06:22:22 PDT
Created attachment 238105 [details]
Patch
Comment on attachment 238105 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=238105&action=review > Tools/MiniBrowser/efl/main.c:312 > + if (ev->z == -1 && zoom_level_set(ewk_view, window->current_zoom_level + 1)) { Isn't ewk_view same with window->ewk_view ? If so, how about using window->ewk_view instead of ewk_view for readability ? Created attachment 238241 [details]
Patch
(In reply to comment #2) > (From update of attachment 238105 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=238105&action=review > > > Tools/MiniBrowser/efl/main.c:312 > > + if (ev->z == -1 && zoom_level_set(ewk_view, window->current_zoom_level + 1)) { > > Isn't ewk_view same with window->ewk_view ? If so, how about using window->ewk_view instead of ewk_view for readability ? Thanks for pointing that out. I notice that if I use the window->ewk_view then the scroll event is not consumed by the view. So scrolling still remains active along with zoom. To avoid this we should use the ewk_view instance passed back in the parameter so that the framework knows that event has been consumed. I have made this uniform and I am using ewk_view for all the API calls in on_mouse_wheel callback. Comment on attachment 238241 [details]
Patch
LGTM.
Comment on attachment 238241 [details] Patch Clearing flags on attachment: 238241 Committed r173750: <http://trac.webkit.org/changeset/173750> All reviewed patches have been landed. Closing bug. |