Skip to content

Commit

Permalink
Fix compression decoration on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
gingershaped committed Sep 18, 2024
1 parent ac7216a commit 4635eb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/latest/scripts/extensions/vyxal/compression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function compressButtonPlugin(util: UtilWorker) {
}, {
decorations: (v) => v.decorations,
eventHandlers: {
mousedown: (event, view) => {
click: (event, view) => {
const target = event.target as HTMLElement;
if (target.classList.contains("cm-compress-button")) {
return toggleCompression(util, view, syntaxTree(view.state).resolveInner(view.posAtDOM(target), -1));
Expand Down

0 comments on commit 4635eb9

Please sign in to comment.