From 0b8703df1df3632ccdbea49f1245f783c0e84af4 Mon Sep 17 00:00:00 2001 From: PliablePixels Date: Wed, 17 Jun 2015 13:48:19 -0400 Subject: fixed scrolling bug introduced by initing monitor array in controller global scope --- www/js/MontageCtrl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'www/js') diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index 407bd214..f99e6da1 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -14,7 +14,8 @@ angular.module('zmApp.controllers').controller('zmApp.MontageCtrl', ['$scope', ' var intervalHandleMontage; // will hold image resize timer on long press var montageIndex = 0; // will hold monitor ID to scale in timer - $scope.monitorSize = []; // array with montage sizes per monitor + // don't init here -will mess up scrolling + // $scope.monitorSize = []; // array with montage sizes per monitor $scope.direction = []; // 1 = increase -1 = decrease $scope.slider = {}; -- cgit v1.2.3