isLandscape,isPortrait detecting opposite orientations when I run on a device


#1

isLandscape,isPortrait detecting opposite orientations when I run on a device google pixel, samsung galaxy edge.
On the web browser when I test on galaxy S5 or iphone, IPad etc, it is running correctly.But even on browser on devide Nexus 5x is detects the opposite orientation


#2

What is your code? :slight_smile: