Revert "Revert "Work around captcha's new scrolling-to-top issue.""
This reverts commit 966c0e1078cf2277b58acc1aa100cff891883966.
This commit is contained in:
parent
4bc839ad3f
commit
6af84cc9ef
@ -141,7 +141,7 @@ QR =
|
||||
$.off d, 'scroll', QR.scrollLock
|
||||
|
||||
inBubble: ->
|
||||
$$('.goog-bubble-content > iframe').some((el) -> el.getBoundingClientRect().bottom > 0)
|
||||
d.activeElement in $$('.goog-bubble-content > iframe')
|
||||
|
||||
inCaptcha: ->
|
||||
(d.activeElement?.nodeName is 'IFRAME' and QR.nodes.el.contains(d.activeElement)) or (QR.hasFocus and QR.inBubble())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user