From 7f5faea469f0c125a8ce7a8ede321f3530db11d8 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 27 Jul 2014 15:21:01 -0700 Subject: [PATCH] WebM contract controls should trigger scroll --- src/Images/ImageExpand.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Images/ImageExpand.coffee b/src/Images/ImageExpand.coffee index 9215efd7f..61f3d232f 100755 --- a/src/Images/ImageExpand.coffee +++ b/src/Images/ImageExpand.coffee @@ -229,7 +229,7 @@ ImageExpand = mouseover: -> mousedown = false mousedown: (e) -> mousedown = true 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) -> if @paused and not @controls @play() @@ -239,7 +239,7 @@ ImageExpand = for eventName, cb of ImageExpand.videoCB $.on post.file.fullImage, eventName, cb if post.file.videoControls - $.on post.file.videoControls.firstElementChild, 'click', -> ImageExpand.contract post + $.on post.file.videoControls.firstElementChild, 'click', -> ImageExpand.toggle post error: -> post = Get.postFromNode @