Remove onMoving listner from CallView
This is not necessary since we already listen for it in CallPreview Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
fca5347668
commit
51e80dd172
1 changed files with 0 additions and 2 deletions
|
@ -53,7 +53,6 @@ interface IProps {
|
||||||
// Callbacks for dragging the CallView in PIP mode
|
// Callbacks for dragging the CallView in PIP mode
|
||||||
dragCallbacks?: {
|
dragCallbacks?: {
|
||||||
onStartMoving: (event: React.MouseEvent) => void;
|
onStartMoving: (event: React.MouseEvent) => void;
|
||||||
onMoving: (event: React.MouseEvent) => void;
|
|
||||||
onEndMoving: () => void;
|
onEndMoving: () => void;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -627,7 +626,6 @@ export default class CallView extends React.Component<IProps, IState> {
|
||||||
<div
|
<div
|
||||||
className="mx_CallView_header"
|
className="mx_CallView_header"
|
||||||
onMouseDown={this.props.dragCallbacks?.onStartMoving}
|
onMouseDown={this.props.dragCallbacks?.onStartMoving}
|
||||||
onMouseMove={this.props.dragCallbacks?.onMoving}
|
|
||||||
onMouseUp={this.props.dragCallbacks?.onEndMoving}
|
onMouseUp={this.props.dragCallbacks?.onEndMoving}
|
||||||
>
|
>
|
||||||
<AccessibleButton onClick={this.onRoomAvatarClick}>
|
<AccessibleButton onClick={this.onRoomAvatarClick}>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue