Skip to content
Commits on Source (3)
...@@ -260,7 +260,7 @@ export class MediaModalComponent implements OnInit, OnDestroy { ...@@ -260,7 +260,7 @@ export class MediaModalComponent implements OnInit, OnDestroy {
// After heights are set, check that scaled width isn't too wide or narrow // After heights are set, check that scaled width isn't too wide or narrow
this.maxStageWidth = Math.max( this.maxStageWidth = Math.max(
window.innerWidth - this.contentWidth + this.padding * 2, window.innerWidth - this.contentWidth - this.padding * 2,
this.minStageWidth this.minStageWidth
); );
......
...@@ -73,7 +73,7 @@ export class GlobalScrollService { ...@@ -73,7 +73,7 @@ export class GlobalScrollService {
const viewEmitter: EventEmitter<any> = new EventEmitter<any>(); const viewEmitter: EventEmitter<any> = new EventEmitter<any>();
if (!subscription.viewListener) { if (!subscription.viewListener) {
subscription.viewListener = subscription.scrollEvent subscription.viewListener = subscription.scrollEvent
.pipe(debounceTime(100)) // wait 100ms before triggering .pipe(debounceTime(30)) // wait 30ms before triggering
.subscribe(e => { .subscribe(e => {
viewEmitter.next(e); viewEmitter.next(e);
}); });
......