(withAnimation: boolean)
| 930 | } |
| 931 | |
| 932 | _setTransition(withAnimation: boolean): void { |
| 933 | this._hasAnimation = !this._platform.IOS && withAnimation && !this._noopAnimations; |
| 934 | this._elementRef.nativeElement.classList.toggle( |
| 935 | 'mat-mdc-slider-with-animation', |
| 936 | this._hasAnimation, |
| 937 | ); |
| 938 | } |
| 939 | |
| 940 | /** Whether the given pointer event occurred within the bounds of the slider pointer's DOM Rect. */ |
| 941 | _isCursorOnSliderThumb(event: PointerEvent, rect: DOMRect) { |
no test coverage detected