Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

Fix orientation threshold #283

Merged
merged 4 commits into from
Sep 4, 2019
Merged

Conversation

hadess
Copy link
Owner

@hadess hadess commented Sep 4, 2019

No description provided.

hadess and others added 4 commits September 4, 2019 17:12
The old code gave a priority to portrait orientation, so that if
rotation reached the portrait threshold, it switched straight away.

This is problematic if the device you're dealing with isn't a mostly
portrait phone, but a tablet that can be used in both orientations
equally.

Landscape thresholds and portrait thresholds can (and they do) overlap.
In the overlapping area we should try to keep the previous orientation
until that threshold has passed.

[Bastien Nocera: Added test change]
@hadess hadess merged commit bb5fbcc into master Sep 4, 2019
@hadess hadess deleted the wip/hadess/orientation-threshold branch January 8, 2020 14:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants