mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-08 22:33:24 +00:00
Fix slider event
This commit is contained in:
@@ -68,6 +68,7 @@ angular.module('app').directive('slider', ['$window', function($window) {
|
||||
*/
|
||||
scope.$watch('max', function(newMax, oldMax) {
|
||||
val = newMax * (val / oldMax); // Retain percentage filled
|
||||
scope.change({ val: val });
|
||||
render();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user