Merge pull request #7092 from brad1111/fix-edge-uwp-detection

Fix Edge WebView 2 being detected as old Edge.
This commit is contained in:
Bill Thornton
2025-08-14 14:18:50 -04:00
committed by GitHub
2 changed files with 1 additions and 4 deletions

View File

@@ -178,6 +178,7 @@ 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
};

View File

@@ -309,10 +309,6 @@ if (browser.web0s) {
browser.orsay = userAgent.toLowerCase().indexOf('smarthub') !== -1;
}
if (browser.edgeUwp) {
browser.edge = true;
}
browser.tv = isTv();
browser.operaTv = browser.tv && userAgent.toLowerCase().indexOf('opr/') !== -1;