Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Doesn't work properly if body is smaller than viewport #57

Closed
alex-novikov-1990 opened this issue Sep 27, 2019 · 2 comments
Closed

Doesn't work properly if body is smaller than viewport #57

alex-novikov-1990 opened this issue Sep 27, 2019 · 2 comments

Comments

@alex-novikov-1990
Copy link

I have a page that does not fill the entire viewport, and there is an insensitive (to outside clicks) area at the bottom of viewport.

Why do you add listeners to document.body instead of document?

@arkon
Copy link
Owner

arkon commented Jan 11, 2020

I have a page that does not fill the entire viewport

But why?

Why do you add listeners to document.body instead of document?

No particular reason, I could change it.

@alex-novikov-1990
Copy link
Author

But why?

Because a screen is larger than a content of a page.

No particular reason, I could change it.

Thank you. This fix is better for me than a CSS quirk:

html { height: 100%; }
body { min-height: 100%; }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants