Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getViewport returns incorrect viewport height #118

Open
ghost opened this issue Aug 24, 2020 · 1 comment
Open

getViewport returns incorrect viewport height #118

ghost opened this issue Aug 24, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 24, 2020

getViewport returns the viewport height the same as the scene height when the page is taller than the browser window. The viewport height should be less than the scene height.

Oddly, an SSCCE for Ellie doesn't reproduce the issue: https://ellie-app.com/9LzKBNqhf7Va1 (see console logs)

I've tried on two different computers, same problem. Same in Chrome and Safari. I suggest downloading the Ellie to try it on your machine to reproduce the problem.

@Augustin82
Copy link

We've been affected by this as well.

Our workaround was to use a "reference" element in the viewport, that is at position 0, and use its position to compute the actual viewport offset.

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

No branches or pull requests

1 participant