Closed Bug 1372064 Opened 8 years ago Closed 8 years ago

Orientation detection inverted (landscape & portrait)

Categories

(developer.mozilla.org Graveyard :: API, enhancement)

All
Other
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: nocaoper, Unassigned)

Details

(Whiteboard: [specification][type:bug])

What did you do? ================ 1. I copied the function on this page https://developer.mozilla.org/en-US/docs/Web/Events/orientationchange 2. Instead of screen.orientation.angle I've used screen.orientation.type 3. I used my phone to switch orientation What happened? ============== When I do landscape my phone tells me that it is portrait. When I do portrait my phone tells me landscape. What should have happened? ========================== When I use landscape I should have gotten a landscape notification. Is there anything else we should know? ====================================== Yes I noticed that the angles reporting is different then the one that google chrome tells me (I've tried the script on google chrome too). I guess the firefox 90degree for portrait is more logical but google chrome reports 0degree as portrait...
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.