Skip to content

Commit 606a010

Browse files
committed
1 parent 9bf1db2 commit 606a010

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib/editorManager.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,12 @@ async function EditorManager($header, $body) {
173173
);
174174

175175
const shiftTapSelectionFix = EditorView.domEventHandlers({
176+
pointerdown(event) {
177+
console.log("|> pointerdown" + (event.shiftKey ? " (shift)" : ""));
178+
return false;
179+
},
176180
mousedown(event, view) {
181+
console.log("|> mousedown" + (event.shiftKey ? " (shift)" : ""));
177182
// Check if Shift is held during the tap/click
178183
if (event.shiftKey) {
179184
// Get the current document position of the tap

0 commit comments

Comments
 (0)