Fix Click Passthrough being applied to images.

This commit is contained in:
ccd0 2015-01-31 23:54:04 -08:00
parent 704a39c307
commit c816d0312b

View File

@ -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) ->