From 611613681fa2cce6c9c4bc07f8e8835ae391fe02 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 11 Mar 2021 08:15:58 +0530 Subject: [PATCH] Only use workaround if boundingrect is actuall negative topped --- src/pyj/read_book/paged_mode.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/read_book/paged_mode.pyj b/src/pyj/read_book/paged_mode.pyj index 4cd35d220a..01773723b5 100644 --- a/src/pyj/read_book/paged_mode.pyj +++ b/src/pyj/read_book/paged_mode.pyj @@ -515,7 +515,7 @@ def scrollable_element(elem): # for a test case. if not in_paged_mode() or window.getComputedStyle(elem).display.indexOf('inline') < 0 or not elem.firstElementChild: return elem - if window.getComputedStyle(elem.firstElementChild).display.indexOf('block') > -1: + if window.getComputedStyle(elem.firstElementChild).display.indexOf('block') > -1 and elem.getBoundingClientRect().top < -100: return elem.firstElementChild return elem