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

Handle non-numeric watcher sliders the same way Scratch does #168

Open
adroitwhiz opened this issue Mar 8, 2023 · 0 comments
Open

Handle non-numeric watcher sliders the same way Scratch does #168

adroitwhiz opened this issue Mar 8, 2023 · 0 comments
Assignees
Labels
compatibility Bugs that cause Leopard's behavior to differ from Scratch's

Comments

@adroitwhiz
Copy link
Collaborator

I haven't looked too much into exactly what Scratch does to a watcher slider when the watcher's value isn't a number, but it's more complex than just "cast to a number".

It appears that non-numeric values set the slider to its middle value (upper-middle if there are an odd number of values). Not all values that can be cast to numbers are--hexadecimal numbers, for instance, are also treated as non-numeric.

@towerofnix towerofnix added the compatibility Bugs that cause Leopard's behavior to differ from Scratch's label Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Bugs that cause Leopard's behavior to differ from Scratch's
Projects
None yet
Development

No branches or pull requests

2 participants