WebM contract controls should trigger scroll
This commit is contained in:
parent
e07ca00ff4
commit
7f5faea469
@ -229,7 +229,7 @@ ImageExpand =
|
|||||||
mouseover: -> mousedown = false
|
mouseover: -> mousedown = false
|
||||||
mousedown: (e) -> mousedown = true if e.button is 0
|
mousedown: (e) -> mousedown = true if e.button is 0
|
||||||
mouseup: (e) -> mousedown = false if e.button is 0
|
mouseup: (e) -> mousedown = false if e.button is 0
|
||||||
mouseout: (e) -> ImageExpand.contract(Get.postFromNode @) if mousedown and e.clientX <= @getBoundingClientRect().left
|
mouseout: (e) -> ImageExpand.toggle(Get.postFromNode @) if mousedown and e.clientX <= @getBoundingClientRect().left
|
||||||
click: (e) ->
|
click: (e) ->
|
||||||
if @paused and not @controls
|
if @paused and not @controls
|
||||||
@play()
|
@play()
|
||||||
@ -239,7 +239,7 @@ ImageExpand =
|
|||||||
for eventName, cb of ImageExpand.videoCB
|
for eventName, cb of ImageExpand.videoCB
|
||||||
$.on post.file.fullImage, eventName, cb
|
$.on post.file.fullImage, eventName, cb
|
||||||
if post.file.videoControls
|
if post.file.videoControls
|
||||||
$.on post.file.videoControls.firstElementChild, 'click', -> ImageExpand.contract post
|
$.on post.file.videoControls.firstElementChild, 'click', -> ImageExpand.toggle post
|
||||||
|
|
||||||
error: ->
|
error: ->
|
||||||
post = Get.postFromNode @
|
post = Get.postFromNode @
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user