From 2331a7e60866178fb561c33023a84825b4179fed Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 21 Jun 2015 11:45:15 -0700 Subject: [PATCH] Skip the anti-scrolling code for v1. --- src/Posting/QR.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 738606871..71c81fdc2 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -134,7 +134,7 @@ QR = QR.hasFocus = d.activeElement and QR.nodes.el.contains(d.activeElement) QR.nodes.el.classList.toggle 'focus', QR.hasFocus # XXX Stop unwanted scrolling due to captcha. - if QR.captcha.isEnabled and !QR.captcha.noscript + if QR.captcha.isEnabled and QR.captcha is Captcha.v2 and !QR.captcha.noscript if QR.inCaptcha() QR.scrollY = window.scrollY $.on d, 'scroll', QR.scrollLock