libkiwix/static
renaud gaudin b1bc883bf5 Fixed #603: safer scroll bound detection
At least on Retina Macbook Pros but most likely on other configurations,
the viewport's sizes is not exactly consistent to integer.
For instance, on a maximized Firefox, document.body.offsetHeight is 1,600.
When looking at the <html> on the inspector, I'd get 1,599.6, so **roughly** the same
but not exactly. Those inconsistencies are present on every level so being too strict
about those is probably not adequate.

This fixes #603 but allowing a 2% margin on the scroll position
to match the _end of screen_ and thus trigger the loading of additional cards.
This means that for the example above, it triggers at 1,568 instead of never reaching 1,600.

2% might be too large but it seems safe considering the potential of various resolutions
we may encounter and I don't see any side effect.
2022-01-03 14:41:19 +00:00
..
skin Fixed #603: safer scroll bound detection 2022-01-03 14:41:19 +00:00
templates Less confusing 404 errors from /random endpoint 2021-12-22 17:12:34 +01:00
catalog_v2_searchdescription.xml /catalog/v2/searchdescription.xml 2021-06-08 20:37:00 +04:00
meson.build Use python3 instead of python. 2020-05-04 10:52:11 +02:00
navigation_feed.tmpl Introduce the server functionality in the kiwix-lib. 2019-08-11 11:30:43 +02:00
opensearchdescription.xml Root url is normalized once in the constructor 2021-06-08 20:37:00 +04:00
resources_list.txt Renave static/home.css to static/index.css 2021-11-16 12:10:15 +00:00