@xsolla/xui-context-menu 0.224.0 → 0.226.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/web/index.mjs CHANGED
@@ -1989,6 +1989,9 @@ var ContextMenuRoot = forwardRef(
1989
1989
  } : {
1990
1990
  maxHeight,
1991
1991
  overflowY: "auto",
1992
+ // Keep scroll inside the panel at its ends, so the
1993
+ // page never scrolls and trips close-on-scroll.
1994
+ overscrollBehavior: "contain",
1992
1995
  // Panel still scrolls; the bar itself is hidden.
1993
1996
  scrollbarWidth: "none"
1994
1997
  },
@@ -2009,6 +2012,7 @@ var ContextMenuRoot = forwardRef(
2009
2012
  style: {
2010
2013
  maxHeight,
2011
2014
  overflowY: "auto",
2015
+ overscrollBehavior: "contain",
2012
2016
  scrollbarWidth: "none",
2013
2017
  borderRadius
2014
2018
  },