Fix volume control in gallery overriding zoom in/out by control+wheel.

This commit is contained in:
ccd0 2015-06-12 21:47:43 -07:00
parent 4446099f1b
commit c4530be148

View File

@ -70,6 +70,7 @@ Volume =
$.on @nodes.thumb, 'wheel', Volume.wheel.bind(Header.hover)
wheel: (e) ->
return if e.shiftKey or e.altKey or e.ctrlKey or e.metaKey
return unless el = $ 'video:not([data-md5])', @
return if el.muted or not $.hasAudio el
volume = el.volume + 0.1