Browse Source

zooms out a little bit less (cf #393)

Former-commit-id: 4f50e4b24802fd4e12d57858ea1bb4445fe4e280
Gildas 5 years ago
parent
commit
eb6de90c5c

+ 2 - 2
lib/single-file/processors/hooks/content/content-hooks-frames-web.js

@@ -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);