Fix Edge Webview 2 being detected as old Edge.

This commit is contained in:
Bradley Eaton
2025-08-13 09:30:30 +01:00
parent 45495caa55
commit cc81d133c8
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;