@xsolla/xui-context-menu 0.224.0 → 0.225.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-context-menu",
3
- "version": "0.224.0",
3
+ "version": "0.225.0",
4
4
  "main": "./web/index.js",
5
5
  "module": "./web/index.mjs",
6
6
  "types": "./web/index.d.ts",
@@ -13,15 +13,15 @@
13
13
  "test:coverage": "vitest run --coverage"
14
14
  },
15
15
  "dependencies": {
16
- "@xsolla/xui-checkbox": "0.224.0",
17
- "@xsolla/xui-core": "0.224.0",
18
- "@xsolla/xui-divider": "0.224.0",
19
- "@xsolla/xui-icons": "0.224.0",
20
- "@xsolla/xui-icons-base": "0.224.0",
21
- "@xsolla/xui-primitives-core": "0.224.0",
22
- "@xsolla/xui-radio": "0.224.0",
23
- "@xsolla/xui-spinner": "0.224.0",
24
- "@xsolla/xui-typography": "0.224.0"
16
+ "@xsolla/xui-checkbox": "0.225.0",
17
+ "@xsolla/xui-core": "0.225.0",
18
+ "@xsolla/xui-divider": "0.225.0",
19
+ "@xsolla/xui-icons": "0.225.0",
20
+ "@xsolla/xui-icons-base": "0.225.0",
21
+ "@xsolla/xui-primitives-core": "0.225.0",
22
+ "@xsolla/xui-radio": "0.225.0",
23
+ "@xsolla/xui-spinner": "0.225.0",
24
+ "@xsolla/xui-typography": "0.225.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": ">=16.8.0",
package/web/index.js CHANGED
@@ -2001,6 +2001,9 @@ var ContextMenuRoot = (0, import_react8.forwardRef)(
2001
2001
  } : {
2002
2002
  maxHeight,
2003
2003
  overflowY: "auto",
2004
+ // Keep scroll inside the panel at its ends, so the
2005
+ // page never scrolls and trips close-on-scroll.
2006
+ overscrollBehavior: "contain",
2004
2007
  // Panel still scrolls; the bar itself is hidden.
2005
2008
  scrollbarWidth: "none"
2006
2009
  },
@@ -2021,6 +2024,7 @@ var ContextMenuRoot = (0, import_react8.forwardRef)(
2021
2024
  style: {
2022
2025
  maxHeight,
2023
2026
  overflowY: "auto",
2027
+ overscrollBehavior: "contain",
2024
2028
  scrollbarWidth: "none",
2025
2029
  borderRadius
2026
2030
  },