Skip to content

Commit

Permalink
[refactor] Change type ClientRect to DOMRect (#6957)
Browse files Browse the repository at this point in the history
  • Loading branch information
eungyeole authored Oct 16, 2024
1 parent e0721af commit 819ab44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const Scrollbar = forwardRef<HTMLDivElement, ScrollbarProps>((props, forw
const context = useScrollAreaContext();
const [scrollbar, setScrollbar] = useState<HTMLDivElement | null>(null);
const composeRefs = useMergedRef(forwardedRef, (node) => setScrollbar(node));
const rectRef = useRef<ClientRect | null>(null);
const rectRef = useRef<DOMRect | null>(null);
const prevWebkitUserSelectRef = useRef<string>('');
const { viewport } = context;
const maxScrollPos = sizes.content - sizes.viewport;
Expand Down

0 comments on commit 819ab44

Please sign in to comment.