(options: ScrollToOptions)
| 127 | } |
| 128 | |
| 129 | private _applyScrollToOptions(options: ScrollToOptions): void { |
| 130 | const el = this.elementRef.nativeElement; |
| 131 | |
| 132 | if (supportsScrollBehavior()) { |
| 133 | el.scrollTo(options); |
| 134 | } else { |
| 135 | if (options.top != null) { |
| 136 | el.scrollTop = options.top; |
| 137 | } |
| 138 | if (options.left != null) { |
| 139 | el.scrollLeft = options.left; |
| 140 | } |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | /** |
| 145 | * Measures the scroll offset relative to the specified edge of the viewport. This method can be |
no test coverage detected