@moontra/moonui-pro 3.3.12 → 3.3.13
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.mjs
CHANGED
|
@@ -78842,9 +78842,12 @@ function useNavbarScroll({
|
|
|
78842
78842
|
}
|
|
78843
78843
|
} else if (scrollBehavior === "minimal") {
|
|
78844
78844
|
const shouldBeMinimal = currentScrollY > scrollThreshold;
|
|
78845
|
-
|
|
78846
|
-
|
|
78847
|
-
|
|
78845
|
+
setIsMinimal((prev) => {
|
|
78846
|
+
if (prev !== shouldBeMinimal) {
|
|
78847
|
+
return shouldBeMinimal;
|
|
78848
|
+
}
|
|
78849
|
+
return prev;
|
|
78850
|
+
});
|
|
78848
78851
|
}
|
|
78849
78852
|
if (showScrollProgress) {
|
|
78850
78853
|
const winScroll = window.scrollY;
|
|
@@ -78854,7 +78857,7 @@ function useNavbarScroll({
|
|
|
78854
78857
|
}
|
|
78855
78858
|
lastScrollY.current = currentScrollY;
|
|
78856
78859
|
ticking.current = false;
|
|
78857
|
-
}, [hideOnScroll, scrollBehavior, showScrollProgress, scrollThreshold
|
|
78860
|
+
}, [hideOnScroll, scrollBehavior, showScrollProgress, scrollThreshold]);
|
|
78858
78861
|
const requestTick = useCallback(() => {
|
|
78859
78862
|
if (!ticking.current) {
|
|
78860
78863
|
requestAnimationFrame(updateScrollState);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.13",
|
|
4
4
|
"description": "Premium React components for MoonUI - Advanced UI library with 50+ pro components including performance, interactive, and gesture components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|