Skip to content

Commit

Permalink
Merge pull request #802 from googlefonts/context-menu-no-additional-c…
Browse files Browse the repository at this point in the history
…lick

[context-menu] Choose item when release mouse after control-click and drag.
  • Loading branch information
justvanrossum authored Sep 13, 2023
2 parents 01b3fa6 + cbc4bda commit 58ddffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fontra/client/web-components/menu-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class MenuPanel extends SimpleElement {
}
},
onmouseleave: (event) => itemElement.classList.remove("selected"),
onclick: (event) => {
onmouseup: (event) => {
event.preventDefault();
event.stopImmediatePropagation();
if (item.enabled()) {
Expand Down

0 comments on commit 58ddffb

Please sign in to comment.