Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: API to disable/enable a control #4

Open
jwdunn1 opened this issue Jan 4, 2023 · 1 comment
Open

Feature request: API to disable/enable a control #4

jwdunn1 opened this issue Jan 4, 2023 · 1 comment
Assignees

Comments

@jwdunn1
Copy link

jwdunn1 commented Jan 4, 2023

Use case: In this sketch, the Y and Z sliders are initially independent. The toggle option allows the user to lock Y to Z. When toggled, the present ratio of Y to Z is computed and then, as the Z slider is dragged, the Y slider automatically remains in correspondence.
Problem: All works well when the Z slider is moved, but if the user attempts to move the Y slider, erratic behavior occurs and ultimately resets.
Solution: The ideal behavior would be to allow the sketch creator to programmatically disable/enable the Y slider in accord with the toggle, like this sketch. Disable means the control is still visible, but not adjustable by the user. Perhaps the blue color in the UI changes to gray. The corresponding numeric value should remain visible.
Question: Is there an alternative approach to this use case?

@msawired
Copy link
Owner

That's a fair use case, thank you for the detailed explanation. I will look into adding disable/enable functionality to the library.

@msawired msawired self-assigned this Jan 11, 2023
@msawired msawired pinned this issue Jan 11, 2023
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

No branches or pull requests

2 participants