Add typing for browser.js

This commit is contained in:
Bill Thornton
2025-09-15 10:10:47 -04:00
parent eff386ffd8
commit 139ecd8146
4 changed files with 56 additions and 14 deletions
-1
View File
@@ -178,7 +178,6 @@ const Scroller: FC<PropsWithChildren<ScrollerProps>> = ({
allowNativeScroll: !enableScrollButtons,
forceHideScrollbars: enableScrollButtons,
// In edge, with the native scroll, the content jumps around when hovering over the buttons
// @ts-expect-error browser doesn't explicitly declare browser.edge, so fails type checking
requireAnimation: enableScrollButtons && browser.edge
};