fix of the approximate value of window.pageYOffset on chrome android (#202)

pull/201/merge
DomExpire 2020-03-31 20:19:08 +02:00 committed by GitHub
parent d43976f3a5
commit 6c4561a8d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ window.App = (function app(window, document) {
* @param {string} data data to log
*/
log: function log(data, replace = false) {
var wasScrolledBottom = window.innerHeight + window.scrollY >= document.body.offsetHeight;
var wasScrolledBottom = (window.innerHeight + Math.ceil(window.pageYOffset + 1)) >= document.body.offsetHeight;
var div = document.createElement('div');
var p = document.createElement('p');
p.className = 'inner-line';