Call dragCallbacks

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-05-02 16:24:47 +02:00
parent bebcb32e8f
commit 8948c7419c
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 19 additions and 11 deletions

View File

@ -623,7 +623,14 @@ export default class CallView extends React.Component<IProps, IState> {
</span>; </span>;
} }
header = <div className="mx_CallView_header"> header = (
<div
className="mx_CallView_header"
onMouseDown={this.props.dragCallbacks?.onStartMoving}
onMouseMove={this.props.dragCallbacks?.onMoving}
onMouseUp={this.props.dragCallbacks?.onEndMoving}
onMouseLeave={this.props.dragCallbacks?.onEndMoving}
>
<AccessibleButton onClick={this.onRoomAvatarClick}> <AccessibleButton onClick={this.onRoomAvatarClick}>
<RoomAvatar room={callRoom} height={32} width={32} /> <RoomAvatar room={callRoom} height={32} width={32} />
</AccessibleButton> </AccessibleButton>
@ -635,7 +642,8 @@ export default class CallView extends React.Component<IProps, IState> {
</div> </div>
</div> </div>
{headerControls} {headerControls}
</div>; </div>
);
myClassName = 'mx_CallView_pip'; myClassName = 'mx_CallView_pip';
} }