Skip the anti-scrolling code for v1.

This commit is contained in:
ccd0 2015-06-21 11:45:15 -07:00
parent 96b8df852a
commit 2331a7e608

View File

@ -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