Skip the anti-scrolling code for v1.
This commit is contained in:
parent
96b8df852a
commit
2331a7e608
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user