Fix double click markdown editor when in split view

#47188
This commit is contained in:
Matt Bierner 2018-04-04 16:30:35 -07:00
parent caee7a5789
commit 9755b46bf6
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View file

@ -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) });
}
});