MCPcopy Create free account
hub / github.com/angular/components / _setTransition

Method _setTransition

src/material/slider/slider.ts:932–938  ·  view source on GitHub ↗
(withAnimation: boolean)

Source from the content-addressed store, hash-verified

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) {

Callers 2

_onFocusMethod · 0.80
_updateThumbUIMethod · 0.80

Calls 1

toggleMethod · 0.65

Tested by

no test coverage detected