mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-16 21:11:56 +03:00
Add semicolons to event listeners
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
2c9231641b
commit
f93ff1c8ae
1 changed files with 4 additions and 4 deletions
|
@ -191,7 +191,7 @@ export default class CallPreview extends React.Component<IProps, IState> {
|
||||||
primaryCall: primaryCall,
|
primaryCall: primaryCall,
|
||||||
secondaryCall: secondaryCalls[0],
|
secondaryCall: secondaryCalls[0],
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
private onStartMoving = (event: React.MouseEvent) => {
|
private onStartMoving = (event: React.MouseEvent) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
@ -201,7 +201,7 @@ export default class CallPreview extends React.Component<IProps, IState> {
|
||||||
|
|
||||||
this.initX = event.pageX - this.lastX;
|
this.initX = event.pageX - this.lastX;
|
||||||
this.initY = event.pageY - this.lastY;
|
this.initY = event.pageY - this.lastY;
|
||||||
}
|
};
|
||||||
|
|
||||||
private onMoving = (event: React.MouseEvent | MouseEvent) => {
|
private onMoving = (event: React.MouseEvent | MouseEvent) => {
|
||||||
if (!this.state.moving) return;
|
if (!this.state.moving) return;
|
||||||
|
@ -216,11 +216,11 @@ export default class CallPreview extends React.Component<IProps, IState> {
|
||||||
translationX: this.lastX,
|
translationX: this.lastX,
|
||||||
translationY: this.lastY,
|
translationY: this.lastY,
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
private onEndMoving = () => {
|
private onEndMoving = () => {
|
||||||
this.setState({moving: false});
|
this.setState({moving: false});
|
||||||
}
|
};
|
||||||
|
|
||||||
public render() {
|
public render() {
|
||||||
if (this.state.primaryCall) {
|
if (this.state.primaryCall) {
|
||||||
|
|
Loading…
Reference in a new issue