From ff273d7ac097a68d7aecc6b49afbf3cb08a7e43c Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 16 Aug 2014 14:15:19 -0700 Subject: [PATCH] this seems to fix the anomalous scrolling in Firefox --- src/Images/Gallery.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index 3fee30f76..4dad7350c 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -88,7 +88,7 @@ Gallery = else Gallery.images[0] - d.body.style.overflow = 'hidden' + doc.style.overflow = 'hidden' nodes.total.textContent = Gallery.images.length generateThumb: (post) -> @@ -262,7 +262,7 @@ Gallery = $.rm Gallery.nodes.el delete Gallery.nodes delete Gallery.fullIDs - d.body.style.overflow = '' + doc.style.overflow = '' $.off d, 'keydown', Gallery.cb.keybinds $.on d, 'keydown', Keybinds.keydown