FIX: Reset `isMouseDown` as long as mouse is up.

This commit is contained in:
Guo Xiang Tan 2016-11-18 15:31:14 +08:00
parent 8cc64cd05b
commit 02150d77a2
1 changed files with 1 additions and 1 deletions

View File

@ -54,10 +54,10 @@ export default Ember.Component.extend({
this.sendAction('deselectText');
}
}).on('mouseup.quote-button', e => {
this.set('isMouseDown', false);
if (ignoreElements(e)) { return; }
this._selectText(e.target);
this.set('isMouseDown', false);
}).on('selectionchange', () => {
// there is no need to handle this event when the mouse is down
// or if there a touch in progress