Fix slider event

This commit is contained in:
Colin McLeod
2015-09-01 20:38:28 -07:00
parent 96ef192738
commit eb0f611d78

View File

@@ -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();
});