diff --git a/src/ui/button.ts b/src/ui/button.ts index 89a3ffae6..e6972cc61 100644 --- a/src/ui/button.ts +++ b/src/ui/button.ts @@ -25,6 +25,7 @@ export function buttonSlide(){ const radioInputs = $j(this).find('.dragIt'); selectedRadio = $j(this).find('input[type=radio]:checked'); + //Check clicked button radioInputs.each(function() { $j(this).on('mousedown', () => { dragging = true; @@ -32,6 +33,7 @@ export function buttonSlide(){ selectedRadio = $j(this).prev('input[type=radio]'); }); + //Check hovered button $j(this).on('mouseover', () => { if (dragging) { selectedRadio.prop('checked', false);