@tekkare/auriga 0.1.60 → 0.1.61
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/module.json
CHANGED
|
@@ -87,6 +87,7 @@ export default defineComponent({
|
|
|
87
87
|
function closeOnScroll() {
|
|
88
88
|
if (window.scrollY > 150) {
|
|
89
89
|
filtersOpen.value = false;
|
|
90
|
+
window.removeEventListener("scroll", closeOnScroll);
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
onMounted(() => {
|
|
@@ -101,6 +102,16 @@ export default defineComponent({
|
|
|
101
102
|
onUnmounted(() => {
|
|
102
103
|
window.removeEventListener("scroll", closeOnScroll);
|
|
103
104
|
});
|
|
105
|
+
watch(
|
|
106
|
+
() => filtersOpen.value,
|
|
107
|
+
() => {
|
|
108
|
+
if (filtersOpen.value === true) {
|
|
109
|
+
setTimeout(() => {
|
|
110
|
+
window.addEventListener("scroll", closeOnScroll);
|
|
111
|
+
}, 700);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
);
|
|
104
115
|
function listenToHeaderChange() {
|
|
105
116
|
const fixedHeader = document.getElementById("arg_header");
|
|
106
117
|
const config = { attributes: true, childList: true };
|