Skip to content

Commit

Permalink
Fixed issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Watermelon914 authored and Watermelon914 committed May 23, 2021
1 parent 1b47b51 commit 7cfa773
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tgui/packages/tgui/interfaces/IntegratedCircuit.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export class ObjectComponent extends Component {
});
window.addEventListener('mousemove', this.handleDrag);
window.addEventListener('mouseup', this.handleStopDrag);
};
}

handleStopDrag(e) {
const { act } = useBackend(this.context);
Expand All @@ -310,7 +310,7 @@ export class ObjectComponent extends Component {
window.removeEventListener('mousemove', this.handleDrag);
window.removeEventListener('mouseup', this.handleStopDrag);
this.setState({ isDragging: false });
};
}

handleDrag(e) {
const { dragPos, isDragging, lastMousePos } = this.state;
Expand All @@ -331,7 +331,7 @@ export class ObjectComponent extends Component {
lastMousePos: { x: xPos, y: yPos },
});
}
};
}

shouldComponentUpdate(nextProps, nextState) {
const { input_ports, output_ports } = this.props;
Expand Down Expand Up @@ -523,7 +523,7 @@ export class Port extends Component {
ref: port.ref,
});

};
}

handlePortRightClick(e) {
const { act } = useBackend(this.context);
Expand All @@ -541,7 +541,7 @@ export class Port extends Component {
is_input: !isOutput,
port_id: portIndex,
});
};
}

componentDidUpdate() {
const { port, onPortUpdated } = this.props;
Expand Down

0 comments on commit 7cfa773

Please sign in to comment.