From 6af84cc9efb8b9a99592dd3bfedbf035cb5b3d49 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 11 Jun 2015 20:06:53 -0700 Subject: [PATCH] Revert "Revert "Work around captcha's new scrolling-to-top issue."" This reverts commit 966c0e1078cf2277b58acc1aa100cff891883966. --- src/Posting/QR.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 960d9fab1..5ce2a6e9b 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -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())