You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem description
For phetsims/qa#938, I am noticing 2 odd things in studio when using the 'get value' 'set value' buttons for positionProperty:
For lensScreen.model.scenes.arrowScene.arrowObject1.positionProperty, I am able to enter a positive x value which moves the arrow to the right side of the lens. Once I either try to move the arrow, or launch the sim, the x value changes to -40.
For lensScreen.model.scenes.framedScene.framedObject.positionProperty, if I enter a value larger than -40, the object is placed at x= -40. The same is true for the lightScene. I was wondering if an error message should pop up or if a range should be given here?
Steps to reproduce
In studio, go to lensScreen.model.scenes.arrowScene.arrowObject1.positionProperty and press 'get value'
Change the value of x to a positive number. Press 'set value'
Try to move the arrow
Repeat steps with lensScreen.model.scenes.framedScene.framedObject.positionProperty
Visuals
The text was updated successfully, but these errors were encountered:
Thanks @Nancy-Salpepi. This came up in #454 (and other sims linked in that issue too) and we decided to do nothing. Validating positionProperty is far more complicated than validating a simple number like diameterProperty. In examples.md, we recommend that clients set the desired position by interacting with the simulation and using "Get Command".
Test device
MacBook Air M1 chip
Operating System
13.3.1
Browser
Safari
Problem description
For phetsims/qa#938, I am noticing 2 odd things in studio when using the 'get value' 'set value' buttons for positionProperty:
For
lensScreen.model.scenes.arrowScene.arrowObject1.positionProperty
, I am able to enter a positive x value which moves the arrow to the right side of the lens. Once I either try to move the arrow, or launch the sim, the x value changes to -40.For
lensScreen.model.scenes.framedScene.framedObject.positionProperty
, if I enter a value larger than -40, the object is placed at x= -40. The same is true for the lightScene. I was wondering if an error message should pop up or if a range should be given here?Steps to reproduce
lensScreen.model.scenes.arrowScene.arrowObject1.positionProperty
and press 'get value'lensScreen.model.scenes.framedScene.framedObject.positionProperty
Visuals
The text was updated successfully, but these errors were encountered: