Commit 49d6bfcf8a7978e3f258d827e30c3d92095c1814
1 parent
3c61c0a8
scroll positionn is at right place on zoom click
Showing
1 changed file
with
5 additions
and
0 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -2565,6 +2565,11 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
2565 | 2565 | } |
2566 | 2566 | |
2567 | 2567 | $scope.CalculateImageCordinates($scope.viewOrientationId); |
2568 | + if($scope.zoomInOut==25) | |
2569 | + $('#canvasDiv').scrollLeft(0) | |
2570 | + else | |
2571 | + $('#canvasDiv').scrollLeft($('#canvasDiv').width() / 2) | |
2572 | + | |
2568 | 2573 | |
2569 | 2574 | } |
2570 | 2575 | ... | ... |