This is something that I completely overlooked in PR 16162, which in some cases cause the default viewer to incorrectly print warnings. This can be reproduced with the PAGE scrolling-mode, and/or the PresentationMode, and this patch simply work-around it by checking the visibility as well (since the warning is a best-effort solution anyway).