From 1b4fbd6b4ca7df582c2161d3d84227dd46cafb8c Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Wed, 23 Nov 2016 11:23:23 +0100 Subject: [PATCH] add more delay to toggle article meta-data - so that double-click selections work better without toggling the meta-data --- .../app/controllers/ticket_zoom/article_view.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/ticket_zoom/article_view.coffee b/app/assets/javascripts/app/controllers/ticket_zoom/article_view.coffee index 17b8029de..7dff6740d 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom/article_view.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom/article_view.coffee @@ -239,11 +239,12 @@ class ArticleViewItem extends App.ObserverController toggleMetaWithDelay: (e) => # allow double click select # by adding a delay to the toggle + delay = 120 - if @lastClick and +new Date - @lastClick < 80 + if @lastClick and +new Date - @lastClick < delay clearTimeout(@toggleMetaTimeout) else - @toggleMetaTimeout = setTimeout(@toggleMeta, 80, e) + @toggleMetaTimeout = setTimeout(@toggleMeta, delay, e) @lastClick = +new Date toggleMeta: (e) =>