mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 312896: tab strip should not respond to double click in space above and below tabs, r=mconnor
This commit is contained in:
parent
baa5f5d4ac
commit
152298dc8e
@ -1329,10 +1329,9 @@
|
||||
<parameter name="aEvent"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
if (aEvent.button == 0 && aEvent.originalTarget.localName != 'tab' &&
|
||||
// Workaround to Bug 224002, the preventBubble() call in the tabbox binding
|
||||
// should block this event.
|
||||
aEvent.originalTarget.localName != "toolbarbutton") {
|
||||
if (aEvent.button == 0 &&
|
||||
// Only capture clicks on tabbox.xml's <spacer>
|
||||
aEvent.originalTarget.localName == "spacer") {
|
||||
var e = document.createEvent("Events");
|
||||
e.initEvent("NewTab", false, true);
|
||||
this.dispatchEvent(e);
|
||||
|
Loading…
Reference in New Issue
Block a user