[develop]: Use threshold parameter in observer of slider tabs.

This commit is contained in:
Konstantinos Triantafyllou 2024-06-18 14:43:14 +03:00
parent 56b5972316
commit 12a94fae40
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ export class SliderTabsComponent implements AfterViewInit, OnDestroy {
}, 200);
}
});
}, {threshold: 0.1});
}, {threshold: this.scrollThreshold});
this.tabs.forEach(tab => {
let element = document.getElementById(tab.id.toString());
if (element) {