From 02150d77a273c4f75466ebcd6233cae65ac4133c Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 18 Nov 2016 15:31:14 +0800 Subject: [PATCH] FIX: Reset `isMouseDown` as long as mouse is up. --- app/assets/javascripts/discourse/components/quote-button.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/quote-button.js.es6 b/app/assets/javascripts/discourse/components/quote-button.js.es6 index c1d4f616931..68c3eb5a7dd 100644 --- a/app/assets/javascripts/discourse/components/quote-button.js.es6 +++ b/app/assets/javascripts/discourse/components/quote-button.js.es6 @@ -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