From 887a4f7e0fc25fde87b20a5de2e7b0aee561cc78 Mon Sep 17 00:00:00 2001 From: brynnchernosky <56202540+brynnchernosky@users.noreply.github.com> Date: Tue, 16 May 2023 22:21:32 -0400 Subject: debugging --- src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx | 2 -- src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx b/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx index 9741ddc3e..aaea988a2 100644 --- a/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx +++ b/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx @@ -2096,7 +2096,6 @@ export default class PhysicsSimulationBox extends ViewBoxAnnotatableComponent {(!this.dataDoc.simulationPaused || this.dataDoc.simulationType == "Inclined Plane" || - this.dataDoc.simulationType == "Suspension" || this.dataDoc.simulationType == "Circular Motion" || this.dataDoc.simulationType == "Pulley") && ( @@ -2169,7 +2168,6 @@ export default class PhysicsSimulationBox extends ViewBoxAnnotatableComponent diff --git a/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx b/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx index a571f03f7..88af37791 100644 --- a/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx +++ b/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx @@ -971,7 +971,6 @@ export default class Weight extends React.Component { className="weightContainer" onPointerDown={(e) => { if (this.draggable) { - console.log('dragging = true') this.props.dataDoc['paused'] = true; this.setState({dragging: true}); this.setState({clickPositionX: e.clientX}); @@ -980,7 +979,6 @@ export default class Weight extends React.Component { }} onPointerMove={(e) => { if (this.state.dragging) { - console.log('dragging') let newY = this.state.yPosition + e.clientY - this.state.clickPositionY; if (newY > this.props.yMax - 2 * this.props.radius - 10) { newY = this.props.yMax - 2 * this.props.radius - 10; @@ -1022,7 +1020,6 @@ export default class Weight extends React.Component { }} onPointerUp={(e) => { if (this.state.dragging) { - console.log('dragging = false') if ( this.props.dataDoc['simulationType'] != "Pendulum" && this.props.dataDoc['simulationType'] != "Suspension" @@ -1214,7 +1211,7 @@ export default class Weight extends React.Component { ) / 100} °

- +