import { Inject, Injectable, NgZone } from '@angular/core';
import { ScrollDispatcher } from '@angular/cdk/overlay';
import { Platform } from '@angular/cdk/platform';
import { DOCUMENT } from '@angular/common';
import { RLayoutScrollService } from '../../services/scroll.service';
export class RScrollDispatcherAdapter extends ScrollDispatcher {
    constructor(ngZone, platform, scrollService, document) {
        super(ngZone, platform, document);
        this.scrollService = scrollService;
    }
    scrolled(auditTimeInMs) {
        return this.scrollService.onScroll();
    }
}
RScrollDispatcherAdapter.decorators = [
    { type: Injectable }
];
RScrollDispatcherAdapter.ctorParameters = () => [
    { type: NgZone },
    { type: Platform },
    { type: RLayoutScrollService },
    { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
];
//# sourceMappingURL=scroll-dispatcher-adapter.js.map