From 86b31bc0403bcf3376997372601615e0945e24bd Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Thu, 2 Jun 2016 16:38:11 -0700 Subject: [PATCH] [Timeline] Simplify scroll-setting --- .../timeline/src/controllers/TimelineZoomController.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/platform/features/timeline/src/controllers/TimelineZoomController.js b/platform/features/timeline/src/controllers/TimelineZoomController.js index 8f0422a7a7..9ce55b3d67 100644 --- a/platform/features/timeline/src/controllers/TimelineZoomController.js +++ b/platform/features/timeline/src/controllers/TimelineZoomController.js @@ -33,8 +33,6 @@ define( var zoomLevels = ZOOM_CONFIGURATION.levels || [1000], zoomIndex = Math.floor(zoomLevels.length / 2), tickWidth = ZOOM_CONFIGURATION.width || 200, - desiredScroll = 0, - achievedDesiredScroll, bounds = { x: 0, width: tickWidth }; // Default duration in view function toMillis(pixels) { @@ -57,11 +55,8 @@ define( } function setScroll(x) { - desiredScroll = x; - achievedDesiredScroll = false; $timeout(function () { - $scope.scroll.x = desiredScroll; - achievedDesiredScroll = true; + $scope.scroll.x = x; }, 0); }