Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Jan 29, 2024
1 parent c5bb864 commit fd154f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export function GetMousePosition(event: React.MouseEvent | MouseEvent) {
const targetElement = event.target as HTMLProgressElement;

const offsetParent = targetElement.offsetParent as HTMLElement;
const offsetParent = targetElement?.offsetParent as HTMLElement;
const offsetParentLeft = offsetParent?.offsetLeft;

console.log(offsetParentLeft);
Expand Down

0 comments on commit fd154f9

Please sign in to comment.