Skip to content

Commit 5401fce

Browse files
author
Dave Conway-Jones
committed
fix slider logic for touch device
to close #589
1 parent a310da0 commit 5401fce

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/components/ui-component/templates/slider.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
aria-label="{{me.item.label}}"
4242
ng-change="me.mchange()"
4343
ng-mouseup="me.mup()"
44-
ng-mousedown="me.mdown()"
4544
ng-mouseleave="me.mleave()"
4645
ng-mouseenter="me.menter()"
4746
style="z-index:1; touch-action:none; min-width:32px;"

src/components/ui-component/ui-component-ctrl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ angular.module('ui').controller('uiComponentController', ['$scope', 'UiEvents',
349349
me.mdown = function() { me.active = true; };
350350
me.menter = function() { me.active = true; };
351351
me.mleave = function() { me.active = false; };
352-
me.mchange = function() { if (!me.active) { me.valueChanged(0); } }
353-
me.mup = function() { me.active = false; me.valueChanged(0); }
352+
me.mchange = function() { me.active = false; me.valueChanged(0); }
353+
me.mup = function() { if (me.active) { me.active = false; me.valueChanged(0); } }
354354
break;
355355
}
356356
}

0 commit comments

Comments
 (0)