aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx')
-rw-r--r--src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx5
1 files changed, 1 insertions, 4 deletions
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}