diff --git a/resources/compiled_coffeescript.zip b/resources/compiled_coffeescript.zip index ccc9b67225..782a26a0c2 100644 Binary files a/resources/compiled_coffeescript.zip and b/resources/compiled_coffeescript.zip differ diff --git a/src/calibre/ebooks/oeb/display/paged.coffee b/src/calibre/ebooks/oeb/display/paged.coffee index fdb83bf2f1..405b26a9f6 100644 --- a/src/calibre/ebooks/oeb/display/paged.coffee +++ b/src/calibre/ebooks/oeb/display/paged.coffee @@ -416,7 +416,7 @@ class PagedDisplay # https://bugs.launchpad.net/calibre/+bug/1132641 for a test case. # The usual symptom of the inaccuracy is br.top is highly negative. br = elem.getBoundingClientRect() - if br.top < -1000 + if br.top < -100 # This only works because of the preceding call to # elem.scrollIntoView(). However, in some cases it gives # inaccurate results, so we prefer the bounding client rect,