From 8f3a8a159a7fed6c49dd70050343a50f86d692a6 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Mon, 26 Oct 2020 14:29:27 -0400 Subject: ios doesn't support screen orientation --- www/js/EventCtrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 56691f69..12a45e36 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -94,7 +94,7 @@ angular.module('zmApp.controllers') recomputeRowHeights(); $ionicScrollDelegate.resize(); - var orientation = (screen.orientation || {}).type || screen.mozOrientation || screen.msOrientation; + var orientation = (screen.orientation || {}).type || screen.mozOrientation || screen.msOrientation || window.orientation; NVR.debug("orientation: " + orientation); if (currOrientation != orientation) { //$scope.$apply(); -- cgit v1.2.3