mirror of
https://github.com/zotero/zotero.git
synced 2026-08-28 05:25:31 +00:00
fx153: Restore pass-through clicks on toolbarbutton dropmarkers
XULButtonElement only opens a type=menu button's menu when the button is the event's original target, which worked before because xul.css gave .toolbarbutton-menu-dropmarker 'pointer-events: none'. That rule was removed along with the dropmarker element, so clicks on our recreated dropmarker did nothing.
This commit is contained in:
parent
300305a9fb
commit
adc5648d29
1 changed files with 3 additions and 0 deletions
|
|
@ -512,6 +512,9 @@ function modify_omni {
|
|||
dropmarker.className = "toolbarbutton-menu-dropmarker";
|
||||
this.appendChild(dropmarker);
|
||||
}' chrome/toolkit/content/global/elements/toolbarbutton.js
|
||||
# Let clicks on the dropmarker pass through to the toolbarbutton, which only opens its menu
|
||||
# when it's the original event target, as xul.css did when Firefox created the dropmarker
|
||||
echo '.toolbarbutton-menu-dropmarker { pointer-events: none; }' >> chrome/toolkit/content/global/xul.css
|
||||
|
||||
# Remove non-native text input styles
|
||||
remove_between 'html\|input\:where\(' '^}' chrome/toolkit/skin/classic/global/global-shared.css
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue