RESOLVED FIXED 136739
[EFL][WK2] Minibrowser : Support Zoom on Control key + scroll
https://bugs.webkit.org/show_bug.cgi?id=136739
Summary [EFL][WK2] Minibrowser : Support Zoom on Control key + scroll
Tanay
Reported 2014-09-11 06:22:22 PDT
Support the following behaviour in Minibrowser: 1) Zoom in on mouse scroll up 2) Zoom out on mouse scroll down
Attachments
Patch (2.91 KB, patch)
2014-09-15 00:11 PDT, Tanay
no flags
Patch (2.89 KB, patch)
2014-09-17 01:44 PDT, Tanay
no flags
Tanay
Comment 1 2014-09-15 00:11:34 PDT
Gyuyoung Kim
Comment 2 2014-09-16 22:46:52 PDT
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 ?
Tanay
Comment 3 2014-09-17 01:44:04 PDT
Tanay
Comment 4 2014-09-17 01:50:03 PDT
(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.
Gyuyoung Kim
Comment 5 2014-09-17 02:20:27 PDT
Comment on attachment 238241 [details] Patch LGTM.
WebKit Commit Bot
Comment 6 2014-09-18 23:59:00 PDT
Comment on attachment 238241 [details] Patch Clearing flags on attachment: 238241 Committed r173750: <http://trac.webkit.org/changeset/173750>
WebKit Commit Bot
Comment 7 2014-09-18 23:59:03 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.