aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
diff options
context:
space:
mode:
authorbrynnchernosky <56202540+brynnchernosky@users.noreply.github.com>2023-05-02 15:27:42 -0400
committerbrynnchernosky <56202540+brynnchernosky@users.noreply.github.com>2023-05-02 15:27:42 -0400
commitf363260bd8857834176fb5bba215fe5218ec8d87 (patch)
treef5912f4fad0a47a31beeae2e36cfcc69d4bcf747 /src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
parent1e99c215456af073a7aade297d19f4dd4a9ecf8c (diff)
debugging
Diffstat (limited to 'src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx')
-rw-r--r--src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx b/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
index 013b1bb5b..ab7ae8450 100644
--- a/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
+++ b/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
@@ -895,7 +895,6 @@ export default class Weight extends React.Component<IWeightProps, IState> {
className="weightContainer"
onPointerDown={(e) => {
if (this.draggable) {
- e.preventDefault();
this.props.dataDoc['paused'] = true;
this.setState({dragging: true});
this.setState({clickPositionX: e.clientX});
@@ -903,7 +902,6 @@ export default class Weight extends React.Component<IWeightProps, IState> {
}
}}
onPointerMove={(e) => {
- e.preventDefault();
if (this.state.dragging) {
let newY = this.state.yPosition + e.clientY - this.state.clickPositionY;
if (newY > this.props.yMax - 2 * this.props.radius - 10) {
@@ -946,7 +944,6 @@ export default class Weight extends React.Component<IWeightProps, IState> {
}}
onPointerUp={(e) => {
if (this.state.dragging) {
- e.preventDefault();
if (
this.props.dataDoc['simulationType'] != "Pendulum" &&
this.props.dataDoc['simulationType'] != "Suspension"