The event is not working in firefox mobile for android.
How do I detect the orientation change after all?
Firefox for Android does not support the orientationchange event but you can achieve the same result by using media query listeners.
var mqOrientation = window.matchMedia("(orientation: portrait)");
// The Listener will fire whenever this either matches or ceases to match
mqOrientation.addListener(function() { self.handleViewportChange(); });
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With