Revert "Revert "Work around captcha's new scrolling-to-top issue.""

This reverts commit 966c0e1078cf2277b58acc1aa100cff891883966.
This commit is contained in:
ccd0 2015-06-11 20:06:53 -07:00
parent 4bc839ad3f
commit 6af84cc9ef

View File

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