From 923bb05b8d5476b455afd0c3fd2d90de0fedeb9f Mon Sep 17 00:00:00 2001 From: Bruno Ribeito Date: Mon, 6 Nov 2017 21:02:53 +0000 Subject: [PATCH] Fix #1093 --- src/SelectionManager.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SelectionManager.ts b/src/SelectionManager.ts index bf5144cb..a5582478 100644 --- a/src/SelectionManager.ts +++ b/src/SelectionManager.ts @@ -541,6 +541,9 @@ export class SelectionManager extends EventEmitter implements ISelectionManager */ private _onMouseUp(event: MouseEvent): void { this._removeMouseDownListeners(); + + if (this.hasSelection) + this.emit('selectionended'); } /**