mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
Merge pull request #3543 from tgxworld/fix_for_double_click_highlight_on_IE11
FIX: Double click on IE11 not highlighting word.
This commit is contained in:
commit
8bf07c02c8
1 changed files with 3 additions and 1 deletions
|
@ -50,7 +50,9 @@ export default Discourse.View.extend({
|
|||
|
||||
// deselects only when the user left click
|
||||
// (allows anyone to `extend` their selection using shift+click)
|
||||
if (e.which === 1 && !e.shiftKey) controller.deselectText();
|
||||
if (!window.getSelection().isCollapsed &&
|
||||
e.which === 1 &&
|
||||
!e.shiftKey) controller.deselectText();
|
||||
})
|
||||
.on('mouseup.quote-button', function(e) {
|
||||
view.selectText(e.target, controller);
|
||||
|
|
Loading…
Reference in a new issue