phetsims / circuit-construction-kit-dc

"Circuit Construction Kit: DC" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
11 stars 8 forks source link

Schematic mode touch areas need work #151

Closed phet-steele closed 7 years ago

phet-steele commented 7 years ago

Testing in 1.0.0-dev.160 with pointer areas enabled. @samreid READ THIS: none of these issues are present when not in schematic mode except for the last one.

Doesn't have text included:

screen shot 2017-09-08 at 11 57 48 am

Hand has a large space underneath. The wire is also slightly too big. Areas in non-schematic mode are good examples of good padding:

screen shot 2017-09-08 at 11 59 20 am

Seen on macOS 10.12.6 Chrome. For phetsims/QA/issues/48.

URL: http://www.colorado.edu/physics/phet/dev/html/circuit-construction-kit-dc/1.0.0-dev.160/circuit-construction-kit-dc_en.html?showPointerAreas Version: 1.0.0-dev.160 2017-09-07 18:03:16 UTC Features missing: touch Flags: pixelRatioScaling User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36 Language: en-US Window: 1920x1014 Pixel Ratio: 2/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: 32 uniform: 1024 Texture: size: 16384 imageUnits: 16 (vertex: 16, combined: 80) Max viewport: 16384x16384 OES_texture_float: true Dependencies JSON: {"assert":{"sha":"928741cf","branch":"master"},"axon":{"sha":"7083c475","branch":"master"},"babel":{"sha":"5b127384","branch":"master"},"brand":{"sha":"cfca902d","branch":"master"},"chipper":{"sha":"66110366","branch":"master"},"circuit-construction-kit-common":{"sha":"a165d9ef","branch":"master"},"circuit-construction-kit-dc":{"sha":"2722c8da","branch":"master"},"dot":{"sha":"630fb098","branch":"master"},"joist":{"sha":"f51d5ab4","branch":"master"},"kite":{"sha":"dc5c4382","branch":"master"},"phet-core":{"sha":"30da7870","branch":"master"},"phetcommon":{"sha":"1a5ceb11","branch":"master"},"query-string-machine":{"sha":"c74e454e","branch":"master"},"scenery":{"sha":"fc2d1cf1","branch":"master"},"scenery-phet":{"sha":"55f204d3","branch":"master"},"sherpa":{"sha":"e29820c9","branch":"master"},"sun":{"sha":"1ed8afa5","branch":"master"},"tandem":{"sha":"37243b99","branch":"master"},"twixt":{"sha":"6f27c1ff","branch":"master"}}

samreid commented 7 years ago

Haven't tried touch....

You can simulate touch from the comfort of your own Chrome by pressing the devices button in the dev tools:

image

samreid commented 7 years ago

https://github.com/phetsims/circuit-construction-kit-common/commit/826a8690201a6ec120bc2fd825888ee11cc92e99 updates touch/mouse areas when lifelike/schematic changes. I'll see which boxes that checks off.

samreid commented 7 years ago

Centering is better, but not perfect: image

samreid commented 7 years ago

Areas from one page of the carousel extend into another page.

That is normal and doesn't cause problems because those objects are occluded by a clip area (more of a problem with our ?showPointerAreas implementation) image

samreid commented 7 years ago

After the above commits, I got everything except the centering (which wasn't too bad to begin with, and even got better after the 1st commit. Not obvious where to look to improve the centering further, but I'm not too worried about it.

@phet-steele would you like a new version?

samreid commented 7 years ago

It looks like the centering issue is caused by the lifelike/schematic pages having different widths and carousel not updating its layout when the icons change.

phet-steele commented 7 years ago

@phet-steele would you like a new version?

No need.

@samreid master looked great. Up to you to pursue the centering. I didn't think it was critical either and it is much improved on master. You can close if you do not desire to improve it further.

samreid commented 7 years ago

Thanks for the review. The centering seems acceptable, let's close.