mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
parent
caee7a5789
commit
9755b46bf6
File diff suppressed because one or more lines are too long
|
@ -75,7 +75,7 @@ document.addEventListener('dblclick', event => {
|
|||
const offset = event.pageY;
|
||||
const line = getEditorLineNumberForPageOffset(offset);
|
||||
if (typeof line === 'number' && !isNaN(line)) {
|
||||
postMessage('didClick', { line });
|
||||
postMessage('didClick', { line: Math.floor(line) });
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue