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:
parent
0f02142eb1
commit
b46533aa5f
1 changed files with 1 additions and 1 deletions
2
app.vue
2
app.vue
|
@ -17,7 +17,7 @@ const contextMenu = useState<ContextMenuInterface>("contextMenu", () => ({ show:
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
loadPreferredThemes()
|
loadPreferredThemes()
|
||||||
|
|
||||||
document.addEventListener("mousedown", (e) => {
|
document.addEventListener("pointerdown", (e) => {
|
||||||
if (e.target instanceof HTMLElement && e.target.classList.contains("context-menu-item")) return;
|
if (e.target instanceof HTMLElement && e.target.classList.contains("context-menu-item")) return;
|
||||||
console.log("click");
|
console.log("click");
|
||||||
console.log("target:", e.target);
|
console.log("target:", e.target);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue