← Back to team overview

ubuntu-phone team mailing list archive

Gyroscope remembers movement and rotates apps when it shouldn't

 

Hi all,

I've noticed apps can rotate unnecessarily if the phone was moved with a non-rotating app shown and a rotating app was later switched to. To test:

1. open the web browser and make sure its vertical
2. put your phone horizontal on your desk (web browser still vertical)
3. make it show the Today scope
4. raise one side of the phone until it's vertical on its side and then put it down on its back again
5. switch to browser
6. the screen rotates

I don't think that's correct behaviour. It looks like the system remembers the last vertical position the phone was in and waits for the next occasion to rotate the interface. I believe the system, if unable to rotate, should "forget" the orientation change and, when switching to a rotating app, once more evaluate the position of the phone and, only if vertical at the time of switching, rotate the UI. In the above example, when the phone is flat on the table after point 4, when the web browser is displayed, the phone should decide there's no need to rotate any more and leave the browser vertical.

What do you think?

--
Dominik Wnęk



Follow ups