Skip to content

Commit

Permalink
more responsive context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
outercloudstudio committed Oct 8, 2023
1 parent ec75dd9 commit 963f3bc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/components/ContextMenu/ContextMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ export default {
<style>
.context-menu-transition-enter-active,
.context-menu-transition-leave-active {
transition: opacity 0.08s;
}
.context-menu-transition-enter,
.context-menu-transition-leave-to {
Expand Down
3 changes: 1 addition & 2 deletions src/components/ContextMenu/showContextMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,5 @@ export async function showContextMenu(
}
})

// This is necessary so an old click outside event doesn't close the new menu
setTimeout(() => app.contextMenu.show(event, actionManager, options), 60)
app.contextMenu.show(event, actionManager, options)
}

0 comments on commit 963f3bc

Please sign in to comment.