Skip to content

Commit

Permalink
Activate switch on dbl click
Browse files Browse the repository at this point in the history
  • Loading branch information
Lubin Pappalardo committed Sep 30, 2023
1 parent 2672b20 commit ddc24ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions assets/scripts/components-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ $('#activateSwitchComponent').click(function (e) {
activateSwitch(SelectedComponent);
})

$(document).dblclick('.component', function(e) {
if (!$(e.target).hasClass('pin') && $(e.target).hasClass('switch')) {
activateSwitch($(e.target));
}
})


/* unselect on click on void */
$('#board').on('click', function (e) {
Expand Down

0 comments on commit ddc24ca

Please sign in to comment.