Fix Click Passthrough being applied to images.
This commit is contained in:
parent
704a39c307
commit
c816d0312b
@ -82,7 +82,7 @@ ImageCommon =
|
|||||||
|
|
||||||
# XXX Estimate whether clicks are on the video controls and should be ignored.
|
# XXX Estimate whether clicks are on the video controls and should be ignored.
|
||||||
onControls: (e) ->
|
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)
|
(e.target.controls and e.target.getBoundingClientRect().bottom - e.clientY < 35)
|
||||||
|
|
||||||
download: (e) ->
|
download: (e) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user