Make double-clicking the PiP take you to the call room (#7142)

This commit is contained in:
Šimon Brandner 2021-11-17 13:49:43 +01:00 committed by GitHub
parent a65637c1ed
commit 816136de97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 17 deletions

View file

@ -42,6 +42,7 @@ interface IProps {
className?: string;
children: ({ onStartMoving, onResize }: IChildrenOptions) => React.ReactNode;
draggable: boolean;
onDoubleClick?: () => void;
}
interface IState {
@ -216,6 +217,7 @@ export default class PictureInPictureDragger extends React.Component<IProps, ISt
className={this.props.className}
style={this.props.draggable ? style : undefined}
ref={this.callViewWrapper}
onDoubleClick={this.props.onDoubleClick}
>
<>
{ this.props.children({