From cbc4bda4755c3d8898d212c63886f24843da7350 Mon Sep 17 00:00:00 2001 From: Fabio Caccamo Date: Wed, 13 Sep 2023 16:07:34 +0200 Subject: [PATCH] Choose item when releasing mouse after control-click and drag. --- src/fontra/client/web-components/menu-panel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fontra/client/web-components/menu-panel.js b/src/fontra/client/web-components/menu-panel.js index b7223925f..29ebfcade 100644 --- a/src/fontra/client/web-components/menu-panel.js +++ b/src/fontra/client/web-components/menu-panel.js @@ -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()) {