Fix volume control in gallery overriding zoom in/out by control+wheel.
This commit is contained in:
parent
4446099f1b
commit
c4530be148
@ -70,6 +70,7 @@ Volume =
|
|||||||
$.on @nodes.thumb, 'wheel', Volume.wheel.bind(Header.hover)
|
$.on @nodes.thumb, 'wheel', Volume.wheel.bind(Header.hover)
|
||||||
|
|
||||||
wheel: (e) ->
|
wheel: (e) ->
|
||||||
|
return if e.shiftKey or e.altKey or e.ctrlKey or e.metaKey
|
||||||
return unless el = $ 'video:not([data-md5])', @
|
return unless el = $ 'video:not([data-md5])', @
|
||||||
return if el.muted or not $.hasAudio el
|
return if el.muted or not $.hasAudio el
|
||||||
volume = el.volume + 0.1
|
volume = el.volume + 0.1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user