We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef92933 commit 1c115b2Copy full SHA for 1c115b2
source/App.svelte
@@ -103,10 +103,13 @@
103
});
104
105
// Toggle extra buttons on right click on the name
106
+ // After the first click, allow the native context menu
107
let onContextMenu;
108
$: onContextMenu = event => {
- showExtras = !showExtras;
109
- event.preventDefault();
+ if (!showExtras) {
110
+ showExtras = true;
111
+ event.preventDefault();
112
+ }
113
};
114
115
function handleBurger() {
@@ -173,7 +176,7 @@
173
176
{...extension}
174
177
bind:enabled={extension.enabled}
175
178
bind:showExtras
- on:contextmenu={onContextMenu}
179
+ on:contextmenu|once={onContextMenu}
180
{undoStack}
181
/>
182
{/if}
0 commit comments