@graupl/navigation-shelf 1.0.0-beta.20 → 1.0.0-beta.21
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/js/component/navigation-shelf.cjs.js +1 -1
- package/dist/js/component/navigation-shelf.cjs.js.map +1 -1
- package/dist/js/component/navigation-shelf.es.js +1 -1
- package/dist/js/component/navigation-shelf.es.js.map +1 -1
- package/dist/js/component/navigation-shelf.iife.js +1 -1
- package/dist/js/component/navigation-shelf.iife.js.map +1 -1
- package/dist/js/generator/navigation-shelf.cjs.js +2 -2
- package/dist/js/generator/navigation-shelf.cjs.js.map +1 -1
- package/dist/js/generator/navigation-shelf.es.js +2 -2
- package/dist/js/generator/navigation-shelf.es.js.map +1 -1
- package/dist/js/generator/navigation-shelf.iife.js +2 -2
- package/dist/js/generator/navigation-shelf.iife.js.map +1 -1
- package/dist/js/navigation-shelf.js +2 -2
- package/dist/js/navigation-shelf.js.map +1 -1
- package/package.json +1 -1
- package/src/js/navigation-shelf/NavigationShelf.js +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graupl/navigation-shelf",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.21",
|
|
4
4
|
"description": "A plugin for Graupl that provides a navigation shelf component.",
|
|
5
5
|
"main": "dist/js/navigation-shelf.cjs.js",
|
|
6
6
|
"module": "dist/js/navigation-shelf.es.js",
|
|
@@ -1389,6 +1389,8 @@ class NavigationShelf {
|
|
|
1389
1389
|
return;
|
|
1390
1390
|
}
|
|
1391
1391
|
|
|
1392
|
+
let width = 0;
|
|
1393
|
+
|
|
1392
1394
|
this._observer = new ResizeObserver((entries) => {
|
|
1393
1395
|
requestAnimationFrame(() => {
|
|
1394
1396
|
for (const entry of entries) {
|
|
@@ -1402,6 +1404,8 @@ class NavigationShelf {
|
|
|
1402
1404
|
|
|
1403
1405
|
if (typeof inlineSize !== "number") continue;
|
|
1404
1406
|
|
|
1407
|
+
if (width === inlineSize) continue;
|
|
1408
|
+
|
|
1405
1409
|
const belowBreakpoint = inlineSize <= this._breakpointWidth;
|
|
1406
1410
|
const aboveBreakpoint = inlineSize > this._breakpointWidth;
|
|
1407
1411
|
|
|
@@ -1413,6 +1417,8 @@ class NavigationShelf {
|
|
|
1413
1417
|
this._locked.reset();
|
|
1414
1418
|
this.lock({ force: true });
|
|
1415
1419
|
}
|
|
1420
|
+
|
|
1421
|
+
width = inlineSize;
|
|
1416
1422
|
}
|
|
1417
1423
|
});
|
|
1418
1424
|
});
|