-
Notifications
You must be signed in to change notification settings - Fork 2
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
Mass thumb can move on its own #292
Comments
This also occurs with the decrement button using similar steps |
Reproduced in main. This problem does not occur in 1.3.0-dev.4 that I published 11/9/23 @ 3:25PM MT. So this must be related to changes that were made since then. |
Hang on... I do see the problem in 1.3.0-dev.4. You need to press the increment/decrement button multiple times to get to the max/min, versus holding the button down. Very weird. |
It's also happening in the baseline and in the published version! I also noticed that if you press the button again it stops, so perhaps there's something in the endCallback that we can look into? |
I commented this chunk in ValuesColumnNode.ts:119 and it fixed itself. Looking if it's the right thing to do or it would break something:
I thought commenting the fireOnDown would change the proper behavior of the button but it seems the same as the baseline, minus the problem. Any thoughts @pixelzoom? |
Thoughts: Removing I suspect that this may be a general problem with NumberControl and/or ArrowButton, and should probably be investigated. Or at least reported in a scenery-phet issue. |
Assigning back to @Nancy-Salpepi to review, please close if OK. |
I confirmed that this is a general problem with NumberControl, and reported in phetsims/scenery-phet#825. |
This is fixed on main. |
Reopening because there is a TODO marked for this issue. |
I converted the TODO in NumberControl to a comment that refers to the proper scenery-phet issue. See phetsims/scenery-phet@17db17d. Closing again. |
Test device
MacBook Air M1 chip
Operating System
14.0
Browser
Safari 17
Problem description
Discovered while testing #274 on main:
Reaching the max mass by continually pressing the increment button and then moving the thumb left, will cause the thumb to move on its own until it reaches the max value. Even pressing Reset All will not stop it from moving.
--This occurs on both screens with all masses.
--This doesn't happen if I press and hold the increment button until the max value is reached.
Steps to reproduce
Here is an example:
Visuals
sliderThumbMoves.mp4
The text was updated successfully, but these errors were encountered: