You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
@@ -156,8 +156,8 @@ export default class CallPreview extends React.Component<IProps, IState> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
private setTranslation(inTranslationX: number, inTranslationY: number) {
|
private setTranslation(inTranslationX: number, inTranslationY: number) {
|
||||||
const width = this.callViewWrapper.current.clientWidth || PIP_VIEW_WIDTH;
|
const width = this.callViewWrapper.current?.clientWidth || PIP_VIEW_WIDTH;
|
||||||
const height = this.callViewWrapper.current.clientHeight || PIP_VIEW_HEIGHT;
|
const height = this.callViewWrapper.current?.clientHeight || PIP_VIEW_HEIGHT;
|
||||||
|
|
||||||
let outTranslationX;
|
let outTranslationX;
|
||||||
let outTranslationY;
|
let outTranslationY;
|
||||||
|
|||||||
Reference in New Issue
Block a user