mirror of https://github.com/kiwix/libkiwix.git
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. |
||
---|---|---|
.. | ||
skin | ||
templates | ||
catalog_v2_searchdescription.xml | ||
meson.build | ||
navigation_feed.tmpl | ||
opensearchdescription.xml | ||
resources_list.txt |