PR #2590 - Fixes #2589 Detail mode in ticket article view is incorrectly triggered when single-click de-selecting a text selection
This commit is contained in:
parent
615c4b4c64
commit
b112ea68a9
1 changed files with 5 additions and 0 deletions
|
@ -348,6 +348,11 @@ class ArticleViewItem extends App.ObserverController
|
||||||
# by adding a delay to the toggle
|
# by adding a delay to the toggle
|
||||||
delay = 300
|
delay = 300
|
||||||
|
|
||||||
|
article = $(e.target).closest('.ticket-article-item')
|
||||||
|
if @elementContainsSelection(article.get(0))
|
||||||
|
@stopPropagation(e)
|
||||||
|
return false
|
||||||
|
|
||||||
if @lastClick and +new Date - @lastClick < delay
|
if @lastClick and +new Date - @lastClick < delay
|
||||||
clearTimeout(@toggleMetaTimeout)
|
clearTimeout(@toggleMetaTimeout)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue