-
Notifications
You must be signed in to change notification settings - Fork 7
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
Electric Potential Sensor grabbed at different points #128
Comments
This code appears in ElectricFieldSensorNode.js if ( event.pointer.isTouch ) {
globalPoint.addXY( 0, -2 * ChargesAndFieldsConstants.ELECTRIC_FIELD_SENSOR_CIRCLE_RADIUS );
} There is similar code in ChargedParticleNode.js if ( event.pointer.isTouch ) {
globalPoint.addXY( 0, -2 * CIRCLE_RADIUS );
} |
False alarm, the sensor is called ElectricPotentialSensorNode, not ElectricFieldSensorNode |
If I add this console.log at the top of ChargesAndFieldsToolboxPanel.js var SENSOR_HEIGHT = electricPotentialPanelOutlineImage.height;
console.log(SENSOR_HEIGHT); I can see that the recording sim is loading with height 0 and the playback sim is loading with height 535. Since the vertical offset is set by this image height, it creates the discrepancy: var initialViewPosition = self.globalToParentPoint( event.pointer.point ).plusXY( 0, -SENSOR_HEIGHT * 6 / 25 ); |
Mirror inputs for http://www.colorado.edu/physics/phet/dev/html/charges-and-fields/1.1.0-phetiodev.1/wrappers/mirror-inputs/mirror-inputs.html?sim=charges-and-fields&relativeSimPath has issues with the electric potential sensor. When grabbing it from the tool box, the "pick up point" is the crosshairs (the crosshairs jump underneath the cursor). This does not happen in the below sim where the little draggy thumb at the bottom of the sensor is the pick up point:
Some things to note:
Seen on macOS 10.12.6 Chrome. For phetsims/qa/issues/37
The text was updated successfully, but these errors were encountered: