|
@@ -63,8 +63,8 @@
|
|
|
const scrollingElement = document.scrollingElement || document.documentElement;
|
|
const scrollingElement = document.scrollingElement || document.documentElement;
|
|
|
const clientHeight = scrollingElement.clientHeight;
|
|
const clientHeight = scrollingElement.clientHeight;
|
|
|
const clientWidth = scrollingElement.clientWidth;
|
|
const clientWidth = scrollingElement.clientWidth;
|
|
|
- const scrollHeight = Math.max(scrollingElement.scrollHeight - (clientHeight * .5), clientHeight);
|
|
|
|
|
- const scrollWidth = Math.max(scrollingElement.scrollWidth - (clientWidth * .5), clientWidth);
|
|
|
|
|
|
|
+ const scrollHeight = Math.max(scrollingElement.scrollHeight - clientHeight, clientHeight);
|
|
|
|
|
+ const scrollWidth = Math.max(scrollingElement.scrollWidth - clientWidth, clientWidth);
|
|
|
scrollingElement.__defineGetter__("clientHeight", () => scrollHeight);
|
|
scrollingElement.__defineGetter__("clientHeight", () => scrollHeight);
|
|
|
scrollingElement.__defineGetter__("clientWidth", () => scrollWidth);
|
|
scrollingElement.__defineGetter__("clientWidth", () => scrollWidth);
|
|
|
screen.__defineGetter__("height", () => scrollHeight);
|
|
screen.__defineGetter__("height", () => scrollHeight);
|