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

This commit is contained in:
ccd0 2015-06-03 18:05:36 -07:00
parent f492712444
commit e4a5f4f04a

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