mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-05 18:32:30 +01:00
This commit is contained in:
parent
7e890cb681
commit
4bcf578606
@ -591,9 +591,11 @@ var renderOnce = function() {
|
|||||||
resizeTimer = undefined;
|
resizeTimer = undefined;
|
||||||
// Do not use equality, fractional pixel dimension occurs and must
|
// Do not use equality, fractional pixel dimension occurs and must
|
||||||
// be ignored.
|
// be ignored.
|
||||||
|
// https://www.reddit.com/r/uBlockOrigin/comments/8qodpw/how_to_hide_the_info_shown_of_what_is_currently/e0lglrr/
|
||||||
|
// Tolerance of 2px fixes the issue.
|
||||||
if (
|
if (
|
||||||
Math.abs(document.body.offsetWidth - window.innerWidth) < 2 &&
|
Math.abs(document.body.offsetWidth - window.innerWidth) <= 2 &&
|
||||||
Math.abs(document.body.offsetHeight - window.innerHeight) < 2
|
Math.abs(document.body.offsetHeight - window.innerHeight) <= 2
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user