Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

add end angle #6

Closed
MeliGualaX opened this issue May 3, 2020 · 5 comments
Closed

add end angle #6

MeliGualaX opened this issue May 3, 2020 · 5 comments

Comments

@MeliGualaX
Copy link

MeliGualaX commented May 3, 2020

Is it posible to add a property that allows to move only in a certain range of angles?. What i want is that the child widgets only move from 0º to 180º (half circle) and no more. Is possible to do that?
Thanks your work help me a lot!

@asjqkkkk
Copy link
Owner

asjqkkkk commented May 4, 2020

It's not hard, Later I will think about how to implement this function specifically

asjqkkkk added a commit that referenced this issue May 4, 2020
asjqkkkk added a commit that referenced this issue May 4, 2020
@asjqkkkk
Copy link
Owner

asjqkkkk commented May 4, 2020

Hi, you can update to v1.0.4 and use DragAngleRange to solve this problem

@MeliGualaX
Copy link
Author

hi, thanks for the quick reply! I already test it. Could be that is not working for negative coords?
dragAngleRange: DragAngleRange(0,1) => this works!
dragAngleRange: DragAngleRange(0,-1) => this not

@asjqkkkk
Copy link
Owner

asjqkkkk commented May 4, 2020

start should be less than end
have a try for (-pi, 0.0)

@MeliGualaX
Copy link
Author

Thanks! That work! I will close the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants