parent
caee7a5789
commit
9755b46bf6
2 changed files with 3 additions and 3 deletions
File diff suppressed because one or more lines are too long
|
@ -75,7 +75,7 @@ document.addEventListener('dblclick', event => {
|
||||||
const offset = event.pageY;
|
const offset = event.pageY;
|
||||||
const line = getEditorLineNumberForPageOffset(offset);
|
const line = getEditorLineNumberForPageOffset(offset);
|
||||||
if (typeof line === 'number' && !isNaN(line)) {
|
if (typeof line === 'number' && !isNaN(line)) {
|
||||||
postMessage('didClick', { line });
|
postMessage('didClick', { line: Math.floor(line) });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue