Skip to content

Commit

Permalink
fix: open context menu when right-clicking node title
Browse files Browse the repository at this point in the history
  • Loading branch information
newcat committed Oct 22, 2024
1 parent 535dcac commit 9a06288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/renderer-vue/src/node/Node.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div v-if="viewModel.settings.nodes.resizable" class="__resize-handle" @mousedown="startResize" />

<slot name="title">
<div class="__title" @pointerdown.self.stop="startDrag">
<div class="__title" @pointerdown.self.stop="startDrag" @contextmenu.prevent="openContextMenu">
<template v-if="!renaming">
<div class="__title-label">
{{ node.title }}
Expand Down

0 comments on commit 9a06288

Please sign in to comment.