aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx2
-rw-r--r--src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx5
2 files changed, 1 insertions, 6 deletions
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<Fi
</td>
{(!this.dataDoc.simulationPaused ||
this.dataDoc.simulationType == "Inclined Plane" ||
- this.dataDoc.simulationType == "Suspension" ||
this.dataDoc.simulationType == "Circular Motion" ||
this.dataDoc.simulationType == "Pulley") && (
<td style={{ cursor: "default" }}>
@@ -2169,7 +2168,6 @@ export default class PhysicsSimulationBox extends ViewBoxAnnotatableComponent<Fi
)}{" "}
{(!this.dataDoc.simulationPaused ||
this.dataDoc.simulationType == "Inclined Plane" ||
- this.dataDoc.simulationType == "Suspension" ||
this.dataDoc.simulationType == "Circular Motion" ||
this.dataDoc.simulationType == "Pulley") && (
<td style={{ cursor: "default" }}>
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}