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 9c9e8e6 commit f5c1a2eCopy full SHA for f5c1a2e
src/editor/codemirror/dnd.ts
@@ -225,8 +225,8 @@ const findLogicalPosition = (
225
x: event.x || event.clientX,
226
y: event.y || event.clientY,
227
});
228
- const column = pos ? pos - visualLine.from : undefined;
229
- const indent = column ? Math.floor(column / 4) : undefined;
+ const column = pos !== null ? pos - visualLine.from : undefined;
+ const indent = column !== undefined ? Math.floor(column / 4) : undefined;
230
return {
231
line: line.number,
232
indent,
0 commit comments