Skip to content

Commit

Permalink
Squelch TS error
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheng5 committed Oct 1, 2024
1 parent 83e6c2f commit 464a62d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion srcts/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ function getBoundingClientSizeBeforeZoom(el: HTMLElement): {
height: number;
} {
const rect = el.getBoundingClientRect();
const zoom = el.currentCSSZoom || 1;
// Cast to any because currentCSSZoom isn't in the type def of HTMLElement
const zoom = (el as any).currentCSSZoom || 1;
return {
width: rect.width / zoom,
height: rect.height / zoom,
Expand Down

0 comments on commit 464a62d

Please sign in to comment.