From a18aa84429258413b0e7adcd6c211f243ebefcf2 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Fri, 21 Dec 2018 10:24:05 -0500 Subject: #766 - wait for rotation to complete or width/height will be wrong --- www/js/MontageCtrl.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'www/js/MontageCtrl.js') diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index 5ec2ed41..f7944ebb 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -1444,11 +1444,7 @@ angular.module('zmApp.controllers') if ($scope.modal) $scope.modal.remove(); }); - function orientationChanged() { - - } - - + // remove a saved montage profile $scope.deleteMontageProfile = function () { var posArray; @@ -2023,8 +2019,7 @@ angular.module('zmApp.controllers') initPackery(); }, zm.packeryTimer); //console.log("**VIEW ** Montage Ctrl AFTER ENTER"); - window.addEventListener("resize", orientationChanged, false); - + if ($rootScope.platformOS != 'android') { document.addEventListener("pause", onPause, false); } else { -- cgit v1.2.3