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

RC Test Friction 1.6.0-rc.1 - Using the Arrow keys or WASD makes the book move really fast #322

Closed
Tracked by #899
Matthew-Moore240 opened this issue Jan 23, 2023 · 12 comments

Comments

@Matthew-Moore240
Copy link

Test device
Firefox 109.0 (64-bit)

Operating System
Windows 11

Browser
Firefox 109.0 (64-bit)

Problem description
The sim seems to be moving at super speed. Using a single press of WASD or Arrow Keys sends the book almost all the way to the top/bottom/left/right

Steps to reproduce

  1. Use the keyboard either WASD or Arrow Keys
  2. Grab the book with space bar
  3. Move the book

Visuals
These movements are all done with a single press of a direction.

2023-01-23.14-11-03.mp4

Troubleshooting information:
!!!!! DO NOT EDIT !!!!!
Name: ‪Friction‬
URL: https://phet-dev.colorado.edu/html/friction/1.6.0-rc.1/phet/friction_all_phet.html
Version: 1.6.0-rc.1 2023-01-17 16:32:22 UTC
Features missing: touch
Flags: pixelRatioScaling
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0
Language: en-US
Window: 2048x1019
Pixel Ratio: 1.25/1
WebGL: WebGL 1.0
GLSL: WebGL GLSL ES 1.0
Vendor: Mozilla (ANGLE (NVIDIA, NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0))
Vertex: attribs: 16 varying: 30 uniform: 4095
Texture: size: 16384 imageUnits: 16 (vertex: 16, combined: 32)
Max viewport: 32767x32767
OES_texture_float: true
Dependencies JSON: {}

@Nancy-Salpepi
Copy link

Nancy-Salpepi commented Jan 24, 2023

I see that in #321 you increased the dragging speed, but it is faster in phetsims/qa#886 than in the published version. I feel like this is affecting Voicing.
In the current version, "Jiggling faster, warmer" gets skipped over a lot, when it didn't in 1.6.0-dev.28. Moving the book with shift + arrow, allows me to hear all the alerts nicely.

When using ?printVoicingResponses, "Jiggling faster, warmer" appears in the console, but it is usually skipped over
Screenshot 2023-01-25 at 9 53 02 AM

@jessegreenberg
Copy link
Contributor

Confirmed, I also see it a little faster in master now compared to published. 446cb77 may have been done by inspection, Ill bet this can be fixed by just manually reducing the speed a little bit to match production.

@zepumph
Copy link
Member

zepumph commented Jan 30, 2023

Yes indeed, it was empirically calculated. I tried to get it close. I wonder if there is another way to ensure it is identical.

@zepumph
Copy link
Member

zepumph commented Feb 1, 2023

Anyone could work on this by just altering the velocities in FrictionKeyboardDragListener

dragDelta: 30,
shiftDragDelta: 15,

@zepumph
Copy link
Member

zepumph commented Feb 1, 2023

Original paper trail:

#321
phetsims/scenery#1437

@zepumph
Copy link
Member

zepumph commented Feb 1, 2023

Over in phetsims/scenery#1530 @samreid and @matthew-blackman and I found that there was a bug that meant that the current friction dragging would be dependent on how fast of a machine you were running.

Here, we can actually side-step that bug and just use dragVelocity, which we should have been doing over in #321 anyways. Updated above. @Matthew-Moore240 can you please confirm things are working better for you now on master?

@zepumph
Copy link
Member

zepumph commented Feb 1, 2023

@Nancy-Salpepi it would be good if you wanted to double check on this too, because of your report in #322 (comment)

@Nancy-Salpepi
Copy link

The book is moving at a reasonable speed and Voicing is sounding much better with the change (and others) in master 🥳.

@jessegreenberg
Copy link
Contributor

cherry-picked into 1.6 branch, ready to verify.

@Nancy-Salpepi
Copy link

This looks good in rc.3. Closing.

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

5 participants