Closed KatieWoe closed 4 years ago
Occurs on other screens as well.
Reproduced with a carbon bucket, so it does occur with other elements.
In the legacy version where was a check to prevent grabbing atoms that weren't in the bucket. Specifically, if the atom was closer to the bucket but technically outside of the bucket. This was implemented before the use of the carousel and the many changes to the bucket's positioning and touch areas.
This check was being fired before the atom's drag listener was being called and it caused the dragging to bail out before anything happened on screen.
This should be fixed in this dev version. Can you verify @KatieWoe?
Sorry the dev version posted didn't include the patched commit. Standby for a new dev version.
Instead of bailing out immediately (in this unique case), we can select the first atom in the particle list. This way the user will still grab an atom when clicking on the bucket. Grabbing the closest atom is limited by the atom's size. Because Hydrogen is so small, we need an additional fallback.
This was also failing for Carbon buckets with 3 or more atoms. If a user left the rightmost and leftmost atoms in the bucket and clicked in the middle of the bucket (a bit lower than the text), then the atom listener would bail out.
This should be fixed in this dev version @KatieWoe.
I think I'm still seeing this in the dev version
Never mind. I think I was looking at the wrong version. This seems ok. I'll keep an eye out in future tests.
Good to know. Closing.
Test device Mac and Dell Operating System MacOS 10.15 and Win 10 Browser Chrome Problem description For https://github.com/phetsims/QA/issues/506. You are not always able to pick up a hydrogen atom by clicking on the bucket, rather than the atom. This tends to happen on the bottom of the bucket, and the locations it does/doesn't work change depending on the number and position of the atoms in the bucket. A bucket position may work once, but not a second time when you try to grab a second hydrogen. Haven't seen yet with other atoms, but it may be possible there. The cursor indicated that you should be able to grab, and grabbing in similar locations on other bucket works. Tends to happen under the word hydrogen, rather than above. Steps to reproduce
Visuals![hydrogeninbucket](https://user-images.githubusercontent.com/41024075/84801439-6a476e00-afbc-11ea-97c2-a0f761a1a5d1.gif)
Troubleshooting information: