Closed KatieWoe closed 2 years ago
possibly related to what was reported in https://github.com/phetsims/center-and-variability/issues/85 ?
Looks like it. Good catch.
@chrisklus and I addressed the case above and it appears to be working OK. However, we are aware the solution will not correctly handle multitouch. For instance, if the user has 68669, then starts drag on the leftmost 6 and drags it between the middle 6s (without letting go), then grabs the 9, then releases the 6 between the other 6s, then drops the 9, the data would be newly sorted but the algorithm would not detect it due to this multitouch flaw. But we thought this might be OK for the current milestone. @KatieWoe can you please test and mark for cherry-picking if all is well?
Since this is a really specific sequence of multi-touch steps, the solution here is fine for the classroom prototype milestone.
I recommend this new implementation be tested before creating the next RC. @KatieWoe can you please take a look?
The issue seems fixed on master
@samreid and I spot-checked this for https://github.com/phetsims/center-and-variability/issues/122, closing.
Test device Dell Operating System Win 11 Browser Firefox Problem description For https://github.com/phetsims/qa/issues/789. When hand sorting the cards on the first screen, if the last card you move into position is put in the middle (or beginning) of a group of the same number, the celebratory "you sorted the data" will not appear. You'll need to move an item and resort it to get it to appear. If you put the card at the end of a group the alert does play. Steps to reproduce
Visuals![nocelebrate](https://user-images.githubusercontent.com/41024075/160668587-1cdc89ff-aa7f-4e5c-b2d9-8d016e817fd3.gif)
Troubleshooting information: