RESOLVED FIXED 184913
[GTK] Implement MouseEvent.buttons
https://bugs.webkit.org/show_bug.cgi?id=184913
Summary [GTK] Implement MouseEvent.buttons
Carlos Garcia Campos
Reported 2018-04-24 06:27:49 PDT
It's currently returning always 0 for WebKitGTK+. https://www.w3.org/TR/uievents/#ref-for-dom-mouseevent-buttons-1
Attachments
Patch (14.68 KB, patch)
2018-04-24 06:34 PDT, Carlos Garcia Campos
zan: review+
Carlos Garcia Campos
Comment 1 2018-04-24 06:34:39 PDT
Ms2ger (he/him; ⌚ UTC+1/+2)
Comment 2 2018-04-25 01:09:31 PDT
Comment on attachment 338644 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=338644&action=review > Source/WebKit/Shared/gtk/WebEventFactory.cpp:154 > + unsigned modifier = 1 << (8 + event->button.button - 1); I've seen this calculation about five times in this patch; worth writing a small helper function?
Carlos Garcia Campos
Comment 3 2018-04-25 03:17:11 PDT
Note You need to log in before you can comment on or make changes to this bug.