From 12a94fae400b82867dff9b554c679627767af163 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Tue, 18 Jun 2024 14:43:14 +0300 Subject: [PATCH] [develop]: Use threshold parameter in observer of slider tabs. --- sharedComponents/tabs/slider-tabs.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharedComponents/tabs/slider-tabs.component.ts b/sharedComponents/tabs/slider-tabs.component.ts index ae37843d..095ef1d2 100644 --- a/sharedComponents/tabs/slider-tabs.component.ts +++ b/sharedComponents/tabs/slider-tabs.component.ts @@ -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) {