Skip to content

Commit b62c5b9

Browse files
committed
Use proper DI.
1 parent 9f66f6d commit b62c5b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/core/overlay/disable-body-scroll.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ export class DisableBodyScroll {
6262
}
6363
}
6464

65-
export function DISABLE_BODY_SCROLL_PROVIDER_FACTORY(parentDispatcher: DisableBodyScroll) {
66-
return parentDispatcher || new DisableBodyScroll(new ViewportRuler());
65+
export function DISABLE_BODY_SCROLL_PROVIDER_FACTORY(parentDispatcher: DisableBodyScroll,
66+
viewportRuler: ViewportRuler) {
67+
return parentDispatcher || new DisableBodyScroll(viewportRuler);
6768
};
6869

6970
export const DISABLE_BODY_SCROLL_PROVIDER = {

0 commit comments

Comments
 (0)