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/PhysicsSimulationWeight.tsx | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

(limited to 'src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx')

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<IWeightProps, IState> {
         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<IWeightProps, IState> {
         }}
         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<IWeightProps, IState> {
         }}
         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<IWeightProps, IState> {
             ) / 100}
             °
           </p>
-          <svg width={this.props.xMax + "px"} height={this.props.layoutDoc._height + "px"}>
+          <svg width={this.props.layoutDoc._width + "px"} height={this.props.layoutDoc._height + "px"}>
             <line
               x1={this.state.xPosition + this.props.radius}
               y1={this.state.yPosition + this.props.radius}
-- 
cgit v1.2.3-70-g09d2

