Skip to content

Commit

Permalink
fix(Path View): 🐛 Prevent contextmenu from popping up
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Apr 29, 2022
1 parent e494c18 commit d58fd33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Components/TrailPath.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@
<button
class="button-div"
on:click={() => (trail_length = getTrailLength(trail_length))}
on:contextmenu={() => (trail_length = getTrailLength(trail_length, -1))}
on:contextmenu={(e) => {
e.preventDefault();
trail_length = getTrailLength(trail_length, -1);
}}
>
{trail_length}
</button>
Expand Down

0 comments on commit d58fd33

Please sign in to comment.