[Webkit-unassigned] [Bug 178853] New: REGRESSION(r223264): [GTK] Mouse clicks are ignored in pages using Polymer library
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 26 01:17:42 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=178853
Bug ID: 178853
Summary: REGRESSION(r223264): [GTK] Mouse clicks are ignored in
pages using Polymer library
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Keywords: Gtk
Severity: Normal
Priority: P2
Component: WebKit Gtk
Assignee: webkit-unassigned at lists.webkit.org
Reporter: cgarcia at igalia.com
CC: bugs-noreply at webkitgtk.org, cdumez at apple.com,
rniwa at webkit.org
For some reason now that we expose MouseEvent.buttons polymer is ignoring mouse clicks. It can be reproduced in https://material.io/icons/, scroll down and try to click in any of the icons. The icon should be selected, but nothing happens. The problem is that now polymer is always returning False from shouldTap. I've implemented buttons in GTK port and tried again, but still doesn't work. It works when actually tapping with a real touch screen, though so I guess this is working in Mac because touch events are disabled. I'm not sure if it's a bug in WebKit or polymer because I don't really understand the javascript code there. This is the js snippet:
shouldTap: function(e, t) {
var n = !0;
return "mouse" === e.pointerType && (n = 1 ^ e.buttons && 1 & t.buttons), n && !e.tapPrevented
},
up: function(t) {
var r = i.get(t.pointerId);
if (r && this.shouldTap(t, r)) {
var s = e.targetFinding.LCA(r.target, t.relatedTarget);
if (s) {
var o = n.makeGestureEvent("tap", {
bubbles: !0,
cancelable: !0,
x: t.clientX,
y: t.clientY,
detail: t.detail,
pointerType: t.pointerType,
pointerId: t.pointerId,
altKey: t.altKey,
ctrlKey: t.ctrlKey,
metaKey: t.metaKey,
shiftKey: t.shiftKey,
_source: "tap"
});
s.dispatchEvent(o)
}
}
i["delete"](t.pointerId)
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171026/f6dffab0/attachment-0001.html>
More information about the webkit-unassigned
mailing list