Commit c8af9c69 authored by Mark Harding's avatar Mark Harding

(chore): reduce 500ms scroll wait to 100ms

parent 44f93840
Pipeline #76325865 pending with stages
......@@ -66,7 +66,7 @@ export class GlobalScrollService {
const viewEmitter: EventEmitter<any> = new EventEmitter<any>();
if (!subscription.viewListener) {
subscription.viewListener = subscription.scrollEvent
.pipe(debounceTime(500))
.pipe(debounceTime(100)) // wait 100ms before triggering
.subscribe((e) => {
viewEmitter.next(e);
});
......
......@@ -41,7 +41,7 @@ export class ScrollService {
listenForView() {
if (!this.viewListener) {
this.viewListener = this.scroll
.pipe(debounceTime(500))
.pipe(debounceTime(100)) // wait 100ms before triggering
.subscribe((e) => { this.viewEmitter.next(e); });
}
return this.viewEmitter;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment