title: Prevent on resize event when opens phone keyboard (JS)
body: <p>Good day guys, I hope someone knows how I can run a function only when the phone device changes orientation. I mean exactly <strong>ONLY when the phone device changes its orientation</strong>, not when keyboard opens >> this is the problem.</p>
  
  <p>I know this <code>window.innerWidth &gt; window.innerHeight</code>, and in conjunction with <code>resize</code> event, it gives me what I need: determination landscape and portrait. But I just now tested my website on Android, and when the keyboard opens this gives me a <code>fake landscape result</code>, I mean device orientation not was changed for real. So, this is the question, how I can run my function when the phone (Android, iOS) changes its orientation, but prevent it if the orientation changes because of keyboard opens.</p>