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

Threshold for triggering screen resize calculation #6

Closed
bergie opened this issue Feb 4, 2014 · 0 comments
Closed

Threshold for triggering screen resize calculation #6

bergie opened this issue Feb 4, 2014 · 0 comments

Comments

@bergie
Copy link
Contributor

bergie commented Feb 4, 2014

There are some situations where screen resize calculation may not be desired when the size change is only a small one.

Example: when viewing a page on Chrome for Android and scrolling down, the navigation bar will disappear from view (triggering vertical resize), then when scrolling upwards again, the navigation bar will again come into view (triggering another vertical resize).

It seems there is no way to control this behavior, and the resize calculations can make GSS layouts with viewport constraints a bit "jumpy". It would be good to be able to ignore resizes on a given axis when the change is smaller than X%.

Example (see how the text sizes change):

screenshot_2013-12-20-12-24-59
screenshot_2013-12-20-12-25-07
screenshot_2013-12-20-12-25-17

@bergie bergie closed this as completed Feb 4, 2014
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