@itilite/iui-user-management 0.4.102 → 0.4.103

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/dist/index.css CHANGED
@@ -687,7 +687,7 @@
687
687
  ._3WNHx ._2_WEg {
688
688
  position: sticky;
689
689
  background: white;
690
- z-index: 2;
690
+ z-index: 3;
691
691
  right: 0;
692
692
  left: 0;
693
693
  top: 60px;
package/dist/index.js CHANGED
@@ -7634,11 +7634,16 @@ var UserList = function UserList(_ref) {
7634
7634
  overlayMenu = _React$useState5[0],
7635
7635
  setOverlayMenu = _React$useState5[1];
7636
7636
  useScrollPosition.useScrollPosition(function (_ref2) {
7637
- var currPos = _ref2.currPos;
7638
- if (currPos.y < -130) {
7639
- setOverlayMenu(true);
7637
+ var prevPos = _ref2.prevPos,
7638
+ currPos = _ref2.currPos;
7639
+ if (prevPos.y - currPos.y > 0) {
7640
+ if (currPos.y < -130) {
7641
+ setOverlayMenu(true);
7642
+ }
7640
7643
  } else {
7641
- setOverlayMenu(false);
7644
+ if (currPos.y > -190) {
7645
+ setOverlayMenu(false);
7646
+ }
7642
7647
  }
7643
7648
  }, [overlayMenu]);
7644
7649
  var scrollTo = function scrollTo(id) {