mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 15:15:34 +00:00
Fix to slider reset event
This commit is contained in:
@@ -93,7 +93,7 @@ angular.module('app').directive('shipyardHeader', ['lodash', '$window', '$rootSc
|
|||||||
scope.resetTextSize = function() {
|
scope.resetTextSize = function() {
|
||||||
if ($rootScope.sizeRatio != 1) {
|
if ($rootScope.sizeRatio != 1) {
|
||||||
scope.textSizeChange(1);
|
scope.textSizeChange(1);
|
||||||
scope.$broadcast('reset');
|
scope.$broadcast('reset',1);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -76,8 +76,8 @@ angular.module('app').directive('slider', ['$window', function($window) {
|
|||||||
angular.element($window).bind('orientationchange resize', render);
|
angular.element($window).bind('orientationchange resize', render);
|
||||||
}
|
}
|
||||||
|
|
||||||
scope.$on('reset', function() {
|
scope.$on('reset', function(e, resetVal) {
|
||||||
val = def;
|
val = resetVal;
|
||||||
drawBrush();
|
drawBrush();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user