diff --git a/src/Posting/Captcha.v2.coffee b/src/Posting/Captcha.v2.coffee index aea247525..662ca209c 100644 --- a/src/Posting/Captcha.v2.coffee +++ b/src/Posting/Captcha.v2.coffee @@ -138,6 +138,9 @@ Captcha.v2 = $.global -> f = document.querySelector('#qr iframe') f.focus = f.blur = -> + # XXX Make sure scroll on space prevention (see src/css/style.css) doesn't cause scrolling of div + if $.engine is 'blink' and iframe.parentNode in $$('#qr .captcha-container > div > div:first-of-type') + $.on iframe.parentNode, 'scroll', -> @scrollTop = 0 fixQRPosition: -> if QR.nodes.el.getBoundingClientRect().bottom > doc.clientHeight diff --git a/src/css/style.css b/src/css/style.css index e217bd534..4799ce273 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -1394,7 +1394,7 @@ input.field.tripped:not(:hover):not(:focus) { margin: auto; width: 304px; } -/* scrollable with scroll bar hidden; prevents scroll on space press */ +/* XXX scrollable with scroll bar hidden; prevents scroll on space press */ :root.ua-blink #qr .captcha-container > div { overflow: hidden; } @@ -1402,6 +1402,8 @@ input.field.tripped:not(:hover):not(:focus) { overflow-y: scroll; overflow-x: hidden; padding-right: 15px; + height: 99%; + width: 100%; } #qr .captcha-counter { display: block;