Bug 92094 - [WTR][EFL] Wheel events are not emitted
Summary: [WTR][EFL] Wheel events are not emitted
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alexander Shalamov
URL:
Keywords:
Depends on:
Blocks: 92107
  Show dependency treegraph
 
Reported: 2012-07-24 04:06 PDT by Alexander Shalamov
Modified: 2012-08-14 05:45 PDT (History)
5 users (show)

See Also:


Attachments
Patch (4.58 KB, patch)
2012-07-24 04:13 PDT, Alexander Shalamov
no flags Details | Formatted Diff | Diff
Patch (3.08 KB, patch)
2012-07-24 05:05 PDT, Alexander Shalamov
no flags Details | Formatted Diff | Diff
Patch (3.18 KB, patch)
2012-07-24 05:34 PDT, Alexander Shalamov
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Shalamov 2012-07-24 04:06:08 PDT
Mouse wheel events are not emitted when fired from EventSenderProxy
Comment 1 Alexander Shalamov 2012-07-24 04:13:13 PDT
Created attachment 154014 [details]
Patch

Fix for wheel event.
Comment 2 Chris Dumez 2012-07-24 04:25:36 PDT
Comment on attachment 154014 [details]
Patch

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

> Tools/WebKitTestRunner/efl/EventSenderProxyEfl.cpp:144
> +static void dispatchMouseDownEvent(Evas* evas, unsigned button, WKEventModifiers wkModifiers, int clickCount)

Looks unrelated to this bug. Maybe it should be in a separate patch?

> Tools/WebKitTestRunner/efl/EventSenderProxyEfl.cpp:304
> +        dispatchMouseDownEvent(ecore_evas_get(m_testController->mainWebView()->platformWindow()), event.button, event.modifiers, m_clickCount);

Ditto.

> Tools/WebKitTestRunner/efl/PlatformWebViewEfl.cpp:53
> +    evas_object_show(m_view);

Ditto.

> Tools/WebKitTestRunner/efl/PlatformWebViewEfl.cpp:74
> +    evas_object_focus_set(m_view, EINA_TRUE);

Ditto.
Comment 3 Alexander Shalamov 2012-07-24 05:05:20 PDT
Created attachment 154024 [details]
Patch

Removed click related code.
Comment 4 Alexander Shalamov 2012-07-24 05:06:56 PDT
(In reply to comment #2)
> (From update of attachment 154014 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=154014&action=review
> 
> > Tools/WebKitTestRunner/efl/EventSenderProxyEfl.cpp:144
> > +static void dispatchMouseDownEvent(Evas* evas, unsigned button, WKEventModifiers wkModifiers, int clickCount)
> 
> Looks unrelated to this bug. Maybe it should be in a separate patch?

Removed, will file new bug

> > Tools/WebKitTestRunner/efl/PlatformWebViewEfl.cpp:53
> > +    evas_object_show(m_view);
> 
> Ditto.
> 
> > Tools/WebKitTestRunner/efl/PlatformWebViewEfl.cpp:74
> > +    evas_object_focus_set(m_view, EINA_TRUE);
> 
> Ditto.
Those are required. View should not be hidden and should be focused, otherwise wheel events are not received in ewk view.
Comment 5 Chris Dumez 2012-07-24 05:17:42 PDT
Comment on attachment 154024 [details]
Patch

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

> Tools/WebKitTestRunner/efl/EventSenderProxyEfl.cpp:361
> +    event.horizontal = -(horizontal);

Why the brackets?

> Tools/WebKitTestRunner/efl/EventSenderProxyEfl.cpp:362
> +    event.vertical = -(vertical);

Ditto.
Comment 6 Chris Dumez 2012-07-24 05:18:20 PDT
Comment on attachment 154024 [details]
Patch

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

> Tools/WebKitTestRunner/efl/PlatformWebViewEfl.cpp:74
> +    evas_object_focus_set(m_view, EINA_TRUE);

This is a cpp file, please use true instead of EINA_TRUE.
Comment 7 Chris Dumez 2012-07-24 05:20:17 PDT
Comment on attachment 154024 [details]
Patch

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

> Tools/WebKitTestRunner/efl/EventSenderProxyEfl.cpp:-371
> -    event.vertical = vertical;

It might be worth adding a comment to explain why we need to reverse the values.
Comment 8 Alexander Shalamov 2012-07-24 05:34:09 PDT
Created attachment 154026 [details]
Patch

Applied fixed according to review comments
Comment 9 Chris Dumez 2012-07-24 05:34:49 PDT
Comment on attachment 154026 [details]
Patch

LGTM.
Comment 10 Csaba Osztrogonác 2012-07-25 02:27:35 PDT
Comment on attachment 154026 [details]
Patch

rs=me based on informal review.
Comment 11 WebKit Review Bot 2012-07-25 03:26:51 PDT
Comment on attachment 154026 [details]
Patch

Clearing flags on attachment: 154026

Committed r123599: <http://trac.webkit.org/changeset/123599>
Comment 12 WebKit Review Bot 2012-07-25 03:26:56 PDT
All reviewed patches have been landed.  Closing bug.