Skip to content

Commit

Permalink
added some comments to function
Browse files Browse the repository at this point in the history
  • Loading branch information
Mandolinx committed Oct 24, 2023
1 parent 5305725 commit 28d985f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ export function buttonSlide(){
const radioInputs = $j(this).find('.dragIt');
selectedRadio = $j(this).find('input[type=radio]:checked');

//Check clicked button
// Check clicked button
radioInputs.each(function() {
$j(this).on('mousedown', () => {
dragging = true;
$j(this).prev('input[type=radio]').prop('checked', true);
selectedRadio = $j(this).prev('input[type=radio]');
});

//Check hovered button
// Check hovered button
$j(this).on('mouseover', () => {
if (dragging) {
selectedRadio.prop('checked', false);
Expand Down

0 comments on commit 28d985f

Please sign in to comment.