Call dragCallbacks

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Š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

View file

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