Skip to content

Commit

Permalink
fix of the approximate value of window.pageYOffset on chrome android (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
DomExpire authored Mar 31, 2020
1 parent d43976f commit 6c4561a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/assets/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 6c4561a

Please sign in to comment.