mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
preventDefault() and stopPropagation() only if moving
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
7042eb38dd
commit
adcdd72a08
1 changed files with 2 additions and 2 deletions
|
@ -199,11 +199,11 @@ export default class CallPreview extends React.Component<IProps, IState> {
|
|||
}
|
||||
|
||||
private onMoving = (event: React.MouseEvent | MouseEvent) => {
|
||||
if (!this.state.moving) return;
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
if (!this.state.moving) return;
|
||||
|
||||
this.lastX = event.pageX - this.initX;
|
||||
this.lastY = event.pageY - this.initY;
|
||||
|
||||
|
|
Loading…
Reference in a new issue