@ulu/frontend-vue 0.1.3-beta.16 → 0.1.3-beta.17
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/frontend-vue.js
CHANGED
|
@@ -6171,7 +6171,7 @@ function ei({ sections: e, props: n, emit: t, componentElRef: s }) {
|
|
|
6171
6171
|
}
|
|
6172
6172
|
function a(d = null, v = "down") {
|
|
6173
6173
|
e.value.forEach((y) => {
|
|
6174
|
-
y !== d && (y.active && (y.inactiveFrom = v === "down" ? "
|
|
6174
|
+
y !== d && (y.active && (y.inactiveFrom = v === "down" ? "forward" : "reverse", y.activeFrom = null), y.active = !1);
|
|
6175
6175
|
});
|
|
6176
6176
|
}
|
|
6177
6177
|
function r() {
|
|
@@ -6192,7 +6192,7 @@ function ei({ sections: e, props: n, emit: t, componentElRef: s }) {
|
|
|
6192
6192
|
n.debug && console.log("Chosen target entry:", M.target);
|
|
6193
6193
|
const X = e.value[o(M.target)];
|
|
6194
6194
|
X && !X.active && (n.debug && console.log("Activating section:", X.title), Ke(() => {
|
|
6195
|
-
a(X, K), X.active = !0, X.inactiveFrom = null, X.activeFrom = K === "down" ? "
|
|
6195
|
+
a(X, K), X.active = !0, X.inactiveFrom = null, X.activeFrom = K === "down" ? "forward" : "reverse", t("section-change", { section: X, sections: e.value, active: !0 });
|
|
6196
6196
|
}));
|
|
6197
6197
|
} else {
|
|
6198
6198
|
n.debug && console.log("No intersecting entries. Checking edge cases.");
|
|
@@ -19,7 +19,7 @@ export function useScrollAnchors({ sections, props, emit, componentElRef }) {
|
|
|
19
19
|
sections.value.forEach(s => {
|
|
20
20
|
if (s !== except) {
|
|
21
21
|
if (s.active) {
|
|
22
|
-
s.inactiveFrom = scrollDirection === 'down' ? '
|
|
22
|
+
s.inactiveFrom = scrollDirection === 'down' ? 'forward' : 'reverse';
|
|
23
23
|
s.activeFrom = null;
|
|
24
24
|
}
|
|
25
25
|
s.active = false;
|
|
@@ -74,7 +74,7 @@ export function useScrollAnchors({ sections, props, emit, componentElRef }) {
|
|
|
74
74
|
removeActive(sectionToActivate, scrollDirection);
|
|
75
75
|
sectionToActivate.active = true;
|
|
76
76
|
sectionToActivate.inactiveFrom = null;
|
|
77
|
-
sectionToActivate.activeFrom = scrollDirection === 'down' ? '
|
|
77
|
+
sectionToActivate.activeFrom = scrollDirection === 'down' ? 'forward' : 'reverse';
|
|
78
78
|
emit("section-change", { section: sectionToActivate, sections: sections.value, active: true });
|
|
79
79
|
});
|
|
80
80
|
}
|