From e4a5f4f04aa54f209fbbc54c203adc111801f7c5 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 3 Jun 2015 18:05:36 -0700 Subject: [PATCH] Work around captcha's new scrolling-to-top issue. --- 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())