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

No touch screen on undo arrow #62

Closed
KatieWoe opened this issue Jan 4, 2019 · 6 comments
Closed

No touch screen on undo arrow #62

KatieWoe opened this issue Jan 4, 2019 · 6 comments
Assignees
Labels

Comments

@KatieWoe
Copy link

KatieWoe commented Jan 4, 2019

Test device:
Dell
Operating System:
Win 10
Browser:
Chrome
Problem description:
For phetsims/qa#252, phetsims/qa#253, and phetsims/qa#250
The undo arrow for the number fractions does not respond to the touch screen
Steps to reproduce:

  1. Go to the lab or game screen and make sure a number fraction builder is available (mixed or not)
  2. Fill in the fraction with random numbers
  3. Try to use touch to hit the undo button

Screenshots:
https://drive.google.com/file/d/17fSPUaulzmzpnHh9JOgHnBGsDQLQtbp4/view?usp=sharing

Troubleshooting information (do not edit):

Name: ‪Fractions Intro‬
URL: https://phet-dev.colorado.edu/html/fractions-intro/1.0.0-dev.17/phet/fractions-intro_en_phet.html
Version: 1.0.0-dev.17 2019-01-04 01:13:54 UTC
Features missing: touch
Flags: pixelRatioScaling
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
Language: en-US
Window: 1536x732
Pixel Ratio: 2.5/1
WebGL: WebGL 1.0 (OpenGL ES 2.0 Chromium)
GLSL: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)
Vendor: WebKit (WebKit WebGL)
Vertex: attribs: 16 varying: 30 uniform: 4096
Texture: size: 16384 imageUnits: 16 (vertex: 16, combined: 32)
Max viewport: 16384x16384
OES_texture_float: true
Dependencies JSON: {}

@KatieWoe KatieWoe added the type:bug Something isn't working label Jan 4, 2019
@KatieWoe
Copy link
Author

KatieWoe commented Jan 5, 2019

Just checked iPad. This issue makes using the undo button in these situations impossible on iPad

@jonathanolson
Copy link
Contributor

I have a temporary solution above.

@samreid it ended up that aborting the enter/exit events led to incorrect pointer counting in other components, so that seems like an infeasible solution.

Additionally, since those events DON'T include the full trail when they are fired on ancestors, it was difficult to check.

Temporary workaround reaches into the button to check what pointers are "over" it, and something like that might be a good longer-term solution (it's grabbing private content right now, yikes).

Would you have time to discuss again?

@samreid
Copy link
Member

samreid commented Jan 14, 2019

@samreid it ended up that aborting the enter/exit events led to incorrect pointer counting in other components, so that seems like an infeasible solution.

Why did aborting exit/enter events lead to incorrect pointer counting elsewhere?

Temporary workaround reaches into the button to check what pointers are "over" it, and something like that might be a good longer-term solution (it's grabbing private content right now, yikes).

I see the proposed solution in GroupNode. Not sure how it might be generalized to other component types in the general case where a client doesn't know if it will have a button child or not (or how to access it).

I messaged you on Slack about scheduling further discussion.

jonathanolson added a commit that referenced this issue Jan 15, 2019
…d handling the drag and button behavior separately. See #62
@jonathanolson
Copy link
Contributor

The discussed permanent solution committed above (along with handling a few complications that came up). @KatieWoe can you verify this behavior on master?

@KatieWoe
Copy link
Author

@jonathanolson confirmed

@jonathanolson
Copy link
Contributor

Thanks!

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

No branches or pull requests

3 participants