current-device icon indicating copy to clipboard operation
current-device copied to clipboard

Orientation switch in Nexus 9

Open slivniy opened this issue 7 years ago • 3 comments

Checking in BrowserStack in Nexus 9. When page is loading orientation (portrait/landscape) is correct. But when rotating device - it's failing... Tested with http://thematthewhudson.com/current-device/ too. How it can be solved?.. Thanks!

slivniy avatar Feb 20 '18 13:02 slivniy

This is happening to every devices.

The right event to detect in line 295 is "orientationchange" and not "onorientationchange".

@matthewhudson please fix this or accept my pull request.

fabioDMFerreira avatar Feb 20 '18 14:02 fabioDMFerreira

@matthewhudson I am still getting this behavior with version 0.7.8 (using an iPhone X), both on my website as well as the example page linked above. would be really great to have this bug fixed, as it breaks responsive layouts that depend on the portrait/landscape class names

ssalka avatar Aug 17 '18 19:08 ssalka

@ssalka Can you submit a PR?

matthewhudson avatar Aug 17 '18 20:08 matthewhudson