diff options
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/EventCtrl.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index ea741a6d..56691f69 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -94,12 +94,13 @@ angular.module('zmApp.controllers') recomputeRowHeights(); $ionicScrollDelegate.resize(); - NVR.debug("screen.orientation.type: " + screen.orientation.type); - if (currOrientation != screen.orientation.type) { + var orientation = (screen.orientation || {}).type || screen.mozOrientation || screen.msOrientation; + NVR.debug("orientation: " + orientation); + if (currOrientation != orientation) { //$scope.$apply(); NVR.debug("sizechanged, scroll to item: " + currEventNum + ", postion: " + currEventPos); scrollTo(currEventNum, currEventPos); - currOrientation = screen.orientation.type; + currOrientation = orientation; } else { $timeout (function() { navTitle(); |
