Skip to content

Conversation

@FourthDing
Copy link
Contributor

I just think it'll be very nice if control pad items are able to snap to specific angles or other item.
Thinking it won‘t be very hard, I wrote this today.

Added a button in the center of the bottom bar with a menu,
1764242122879
1764242122889

It mainly functions well, but sometimes seems buggy interacting. I think maybe the modifier transformable's absent perception of the end of a gesture have made it need modifications to update the rotation completely as expected. I'm sure my programming skill is below the average(be honest, learned a lot from your work making this.) and to be less invasive, I kept the base as is.

Screenrecorder-2025-11-27-21-46-49-391.mp4

I have little time for this, but I'll keep track once I have.

By the way, thank you very much for mentioning my simple glue mod.

@UmerCodez
Copy link
Owner

The feature looks useful. I’ll test it to verify that it works as expected

@FourthDing
Copy link
Contributor Author

Oh no I found some bugs, while I got an idea to help with the re-snapping when the snapping settings are changed. wait a moment.
https://github.com/user-attachments/assets/f496bc22-68b7-4adf-9332-0924eb2ff0de

@UmerCodez
Copy link
Owner

Oh no I found some bugs, while I got an idea to help with the re-snapping when the snapping settings are changed. wait a moment

Ok, take your time to fix it

@FourthDing
Copy link
Contributor Author

FourthDing commented Nov 28, 2025

Seems done. I can't believe it can be so great under transformable Modifier, another great lesson for myself.

@UmerCodez
Copy link
Owner

I'll test it tomorrow

@FourthDing
Copy link
Contributor Author

Of course, just follow your own pace.

Replaced the tooltip icon for the "Angle Snap" setting with a more direct supporting text description. This simplifies the UI and makes the purpose of the setting clearer to the user.
Applied `MaterialTheme.typography.labelSmall` to the supporting text of the "Enable Angle Snap" `ListItem` for a more consistent and refined UI.
@UmerCodez UmerCodez merged commit 4317803 into UmerCodez:main Nov 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants