From c816d0312b20825574187e148ccdd1038d3ee680 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 31 Jan 2015 23:54:04 -0800 Subject: [PATCH] Fix Click Passthrough being applied to images. --- src/Images/ImageCommon.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Images/ImageCommon.coffee b/src/Images/ImageCommon.coffee index efda1df22..8028f82c2 100644 --- a/src/Images/ImageCommon.coffee +++ b/src/Images/ImageCommon.coffee @@ -82,7 +82,7 @@ ImageCommon = # XXX Estimate whether clicks are on the video controls and should be ignored. onControls: (e) -> - (Conf['Show Controls'] and Conf['Click Passthrough']) or + (Conf['Show Controls'] and Conf['Click Passthrough'] and e.target.nodeName is 'VIDEO') or (e.target.controls and e.target.getBoundingClientRect().bottom - e.clientY < 35) download: (e) ->