@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 +1 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -7631,11 +7631,16 @@ var UserList = function UserList(_ref) {
|
|
|
7631
7631
|
overlayMenu = _React$useState5[0],
|
|
7632
7632
|
setOverlayMenu = _React$useState5[1];
|
|
7633
7633
|
useScrollPosition(function (_ref2) {
|
|
7634
|
-
var
|
|
7635
|
-
|
|
7636
|
-
|
|
7634
|
+
var prevPos = _ref2.prevPos,
|
|
7635
|
+
currPos = _ref2.currPos;
|
|
7636
|
+
if (prevPos.y - currPos.y > 0) {
|
|
7637
|
+
if (currPos.y < -130) {
|
|
7638
|
+
setOverlayMenu(true);
|
|
7639
|
+
}
|
|
7637
7640
|
} else {
|
|
7638
|
-
|
|
7641
|
+
if (currPos.y > -190) {
|
|
7642
|
+
setOverlayMenu(false);
|
|
7643
|
+
}
|
|
7639
7644
|
}
|
|
7640
7645
|
}, [overlayMenu]);
|
|
7641
7646
|
var scrollTo = function scrollTo(id) {
|