-
Notifications
You must be signed in to change notification settings - Fork 0
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
Number and Symbol cards return to incorrect location after window resize #69
Comments
From 4/11 standup with @zepumph and @Nancy-Salpepi: We are going to try converting the home location Vector2 to a function that gets the current position. |
@samreid @chrisklus and I fixed this by recalculating the destination when dropping, and animating to the side of the carousel if the card is off page. @Nancy-Salpepi can you please take this for a test drive since we discussed it this morning together? Resize should not cause this bug anymore on master. |
Cards now animate to the correct position when changing window size. numberOverlapsCarousel.mp4 |
@Nancy-Salpepi @zepumph and I reviewed the last two behaviors identified in #69 (comment), and think we are good to go as is. We though about making new bounds for all of the things on this screen to contain them to not overlap with any of the panels, but concluded that using their own drag bounds seems fine. |
We discussed this with @amanda-phet to review the new (3rd paradigm) for animating items back into the carousel. We decided to keep this in because the animation behavior is more important for the younger audience of this sim. It would be better than disappearing when dropped. We will proceed with cherry picking it. |
Patch applied |
For QA: The expected, new behavior for this release is the the card will always return exactly to the location of that number's card, no matter the resize. If that card number's creator in the carousel is "off the page", then it will animate to the edge of the carousel in the direction of where the card's page would be (left or right), but not go beyond, and instead just to where the center of the card meets the edge of the carousel. Feel free to close if there is nothing too weird about this. |
This looks good to me in rc.2. |
Found while working on phetsims/number-play#228.
Tagging phetsims/qa#929.
If you pull out a number card or symbol card, then resize the window (in a way that moves the number card or symbol card home), then return them, they animate to the wrong spot. This is present in rc.1.
The text was updated successfully, but these errors were encountered: