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

This reverts commit e4a5f4f04aa54f209fbbc54c203adc111801f7c5.
This commit is contained in:
ccd0 2015-06-03 19:31:46 -07:00
parent 72c408e56b
commit 966c0e1078

View File

@ -141,7 +141,7 @@ QR =
$.off d, 'scroll', QR.scrollLock
inBubble: ->
d.activeElement in $$('.goog-bubble-content > iframe')
$$('.goog-bubble-content > iframe').some((el) -> el.getBoundingClientRect().bottom > 0)
inCaptcha: ->
(d.activeElement?.nodeName is 'IFRAME' and QR.nodes.el.contains(d.activeElement)) or (QR.hasFocus and QR.inBubble())