-
Notifications
You must be signed in to change notification settings - Fork 5
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
Sometimes the RoundStickyPushButton highlights wrong #228
Comments
It seems that |
Here's the docs for // @public - This Property was added for a11y. It tracks whether or not the button should "look" down. This
// will be true if downProperty is true or if an a11y click is in progress. For an a11y click, the listeners
// are fired right away but the button will look down for as long as PressListener.a11yLooksPressedInterval.
// See PressListener.click for more details.
this.looksPressedProperty = new BooleanProperty( false ); Assigning @jessegreenberg for investigation. |
Oops, sorry for the hassle. This is related to phetsims/ph-scale#71. The button looks pressed because StickyToggleButtonModel.downProperty is still true after the toggle button's valueProperty is set by the sim. This was fixed in ph-scale by updating the downProperty with the valueProperty in MomentaryButtonModel. We need to do the same in StickyToggleButtonModel as well as any other subtypes of ButtonModel where you can control the button value Property and expect the button view to update accordingly. Ill create an issue in sun to search for these. |
This should be fixed in master, @samreid can you please confirm? |
I can't seem to break it any more, thanks for the fix! |
Discovered during #227. Sometimes the highlight looks like "pressed" instead of "shiny"
The text was updated successfully, but these errors were encountered: