Skip to content

Commit

Permalink
Allow changing card selection
Browse files Browse the repository at this point in the history
  • Loading branch information
zephraph committed Aug 13, 2020
1 parent 8fdb797 commit 0b6aa9a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,5 +260,11 @@ export const useSelectCardControls = () => {
) {
moveCard();
}

// Change what card is selected
else {
const newSelectedCard = clone(highlightedCard);
setSelectedCard(newSelectedCard);
}
});
};

0 comments on commit 0b6aa9a

Please sign in to comment.