Last active
April 15, 2024 07:25
-
-
Save AndreVero/3bfd1a194ae2079298a5f4aa020e4cb7 to your computer and use it in GitHub Desktop.
Drag to closest item
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Drag to the closest item | |
state.animateTo(state.angle - state.selectedItem.angle) | |
// Trigger pick listener | |
state.selectedItem.item?.let(onItemPicked) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment