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/MonitorModalCtrl.js | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'www/js/MonitorModalCtrl.js') diff --git a/www/js/MonitorModalCtrl.js b/www/js/MonitorModalCtrl.js index ced3dfe8..41eac0ed 100644 --- a/www/js/MonitorModalCtrl.js +++ b/www/js/MonitorModalCtrl.js @@ -27,20 +27,6 @@ angular.module('zmApp.controllers').controller('MonitorModalCtrl', ['$scope', '$ $scope.csize = ($rootScope.platformOS == 'desktop') ? 10 : 20; - window.addEventListener("resize", imageLoaded, false); - - - //$rootScope.authSession = "undefined"; - - /* $ionicLoading.show({ - template: $translate.instant('kNegotiatingStreamAuth') + '...', - animation: 'fade-in', - showBackdrop: false, - duration: zm.loadingTimeout, - maxWidth: 300, - showDelay: 0 - });*/ - $scope.currentStreamMode = 'single'; NVRDataModel.log("Using stream mode " + $scope.currentStreamMode); @@ -1367,7 +1353,6 @@ angular.module('zmApp.controllers').controller('MonitorModalCtrl', ['$scope', '$ $scope.$on('modal.removed', function () { - window.removeEventListener("resize", imageLoaded, false); if ($rootScope.platformOS == 'android') { NVRDataModel.debug("Deregistering handlers for multi-window"); -- cgit v1.2.3