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