Minor: remove a typecast from <CallingPip>
This commit is contained in:
parent
4c78a6c57f
commit
c7290309d3
2 changed files with 2 additions and 11 deletions
|
@ -38,7 +38,7 @@ export const CallingPip = ({
|
|||
setRendererCanvas,
|
||||
togglePip,
|
||||
}: PropsType): JSX.Element | null => {
|
||||
const videoContainerRef = React.useRef(null);
|
||||
const videoContainerRef = React.useRef<null | HTMLDivElement>(null);
|
||||
const localVideoRef = React.useRef(null);
|
||||
|
||||
const [dragState, setDragState] = React.useState({
|
||||
|
@ -144,7 +144,7 @@ export const CallingPip = ({
|
|||
if (!node) {
|
||||
return;
|
||||
}
|
||||
const rect = (node as HTMLElement).getBoundingClientRect();
|
||||
const rect = node.getBoundingClientRect();
|
||||
const offsetX = ev.clientX - rect.left;
|
||||
const offsetY = ev.clientY - rect.top;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue