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>;
|
</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';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue