Call dragCallbacks
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
bebcb32e8f
commit
8948c7419c
1 changed files with 19 additions and 11 deletions
|
@ -623,19 +623,27 @@ export default class CallView extends React.Component<IProps, IState> {
|
|||
</span>;
|
||||
}
|
||||
|
||||
header = <div className="mx_CallView_header">
|
||||
<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}
|
||||
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}>
|
||||
<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>
|
||||
{headerControls}
|
||||
</div>
|
||||
{headerControls}
|
||||
</div>;
|
||||
);
|
||||
myClassName = 'mx_CallView_pip';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue