Skip to content
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

Possible to freeze sliders until page is refreshed on iPad #340

Closed
KatieWoe opened this issue Jun 3, 2020 · 5 comments
Closed

Possible to freeze sliders until page is refreshed on iPad #340

KatieWoe opened this issue Jun 3, 2020 · 5 comments

Comments

@KatieWoe
Copy link
Contributor

KatieWoe commented Jun 3, 2020

Test device
iPad
Operating System
iPadOS 13
Browser
Safari
Problem description
For phetsims/qa#505. Seems to be partly an iOS issue, but I wasn't able to reproduce on published. On published the sim did not seem to swipe to go back or forward.
The edges of the sliders to control the masses of objects are on the right side of the screen. If the thumb of the slider is near the edge, and you start to drag it, it is possible for safari to interpret this as moving forward a page. If this starts to happen, but you stay on the sim, then the slider you were attempting to drag will be frozen permanently until you reload the page. Other sliders/items will still respond.
Steps

  1. Go to the sim
  2. Go to a new page in the same tab
  3. Swipe to go back to the sim
  4. Go to the first screen
  5. Move the star mass slider all the way to the right and let go
  6. Try to move the slider back towards the left
  7. If/when safari starts to move forward a page, let go/move your finger back to stay in the sim
  8. Try to interact with the slider

Visuals
backarrow

@samreid
Copy link
Member

samreid commented Jun 8, 2020

In discussion with @arouinfar, we agreed this should be addressed for RC but not necessary for dev version.

@samreid samreid removed their assignment Jun 10, 2020
@samreid samreid self-assigned this Aug 7, 2020
@samreid
Copy link
Member

samreid commented Aug 16, 2020

I reproduced the problem on iOS 13.3.1 on an iPad 7. The slider thumb becomes unresponsive and even "reset all" doesn't bring it back to life. It looks like it is getting picked up by "swipe to snag".

@samreid
Copy link
Member

samreid commented Aug 16, 2020

I confirmed that adding allowTouchSnag: false, to the slider thumb input listener avoids the problem. My hypothesis is that a snagged object (or perhaps any dragged object) isn't receiving or handling "pointer released" event when using the "swipe browser edge to navigate forward/back". I'll create a scenery issue for that.

@samreid
Copy link
Member

samreid commented Aug 16, 2020

I opened a scenery issue, putting this one on hold until we have progress in the scenery issue.

@samreid samreid removed their assignment Aug 16, 2020
@ariel-phet
Copy link

I attempted to reproduce on iOS 14, and I do not see this issue occurring. Also even if this issue still existed I would not consider it a high priority as it is a pretty specific set of steps needed to cause a problem.

Closing since the iOS update appears to have fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants