[develop]: Use threshold parameter in observer of slider tabs.
This commit is contained in:
parent
56b5972316
commit
12a94fae40
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue