From cb50f1756700e89d83438282312e98c3630e7107 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 27 Sep 2014 12:44:25 -0700 Subject: [PATCH] Work around Chrome/Chromium not firing mouseover on the thumbnail. --- src/Images/ImageExpand.coffee | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Images/ImageExpand.coffee b/src/Images/ImageExpand.coffee index f76e30e30..2894fd7ff 100755 --- a/src/Images/ImageExpand.coffee +++ b/src/Images/ImageExpand.coffee @@ -142,8 +142,12 @@ ImageExpand = $.off el, eventName, cb ImageCommon.rewind post, el delete file.fullImage - $.rm el - $.rmClass el, 'full-image' + $.queueTask -> + # XXX Work around Chrome/Chromium not firing mouseover on the thumbnail. + return if file.isExpanding or file.isExpanded + $.rmClass el, 'full-image' + return if el.id + $.rm el expand: (post, src) -> # Do not expand images of hidden/filtered replies, or already expanded pictures.