mirror of https://github.com/VERT-sh/VERT.git
parent
f2d39ed1f4
commit
1d9890fb37
|
@ -79,6 +79,7 @@
|
||||||
const newIndex = items.findIndex((i) =>
|
const newIndex = items.findIndex((i) =>
|
||||||
i.activeMatch(e.to?.url.pathname || ""),
|
i.activeMatch(e.to?.url.pathname || ""),
|
||||||
);
|
);
|
||||||
|
console.log(oldIndex, newIndex);
|
||||||
if (newIndex < oldIndex) {
|
if (newIndex < oldIndex) {
|
||||||
goingLeft.set(true);
|
goingLeft.set(true);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue