Skip to content

Commit 3c2a2a0

Browse files
committed
Make gutterContextMenu work on Firefox
Closes #5584
1 parent b10bb86 commit 3c2a2a0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/edit/mouse_events.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ export function onMouseDown(e) {
7171
}
7272
return
7373
}
74-
if (clickInGutter(cm, e)) return
75-
let pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : "single"
74+
let button = e_button(e)
75+
if (button == 3 && captureRightClick ? contextMenuInGutter(cm, e) : clickInGutter(cm, e)) return
76+
let pos = posFromMouse(cm, e), repeat = pos ? clickRepeat(pos, button) : "single"
7677
window.focus()
7778

7879
// #3261: make sure, that we're not starting a second selection

0 commit comments

Comments
 (0)