fix: change app.vue mousedown listener to pointerdown due to mousedown only listening to left-click, causing context menu not to be removed properly in certain cases

This commit is contained in:
SauceyRed 2025-08-16 15:03:58 +02:00
parent 0f02142eb1
commit b46533aa5f
Signed by: sauceyred
GPG key ID: 2BF92EB6D8A5CCA7

View file

@ -17,7 +17,7 @@ const contextMenu = useState<ContextMenuInterface>("contextMenu", () => ({ show:
onMounted(() => {
loadPreferredThemes()
document.addEventListener("mousedown", (e) => {
document.addEventListener("pointerdown", (e) => {
if (e.target instanceof HTMLElement && e.target.classList.contains("context-menu-item")) return;
console.log("click");
console.log("target:", e.target);