monaco-editor version: 0.9.0
Browser: Chrome
OS: Windows 10
Steps or JS usage snippet reproducing the issue:
Expected behavior:
Actual behavior:
This is happening also in the playground in Chrome.
It is working properly on Edge.
I debugged this issue and found out the event :
editor.onDidChangeCursorSelection(function(e) {
console.log(e.selection);
})
won't fire in Chrome, when the text is selected and I click inside\outside the text.
@galyech we added a new feature called Drag and Drop on selections, which blocks you on seleletion change event in this case

You can disable it by setting editor.dragAndDrop to false to have it turned off.
shouldn't the D&D behavior be compatible with clicking outside the selection? Many editors know the difference between dragging text selection and clicking outside a selection (and removing the highlight), It seems you can only get one of the 2 behaviors.
Most helpful comment
@galyech we added a new feature called Drag and Drop on selections, which blocks you on seleletion change event in this case
You can disable it by setting
editor.dragAndDroptofalseto have it turned off.