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

Method _updateOverlappingThumbUI

src/material/slider/slider.ts:705–713  ·  view source on GitHub ↗

Updates the UI of slider thumbs when they begin or stop overlapping.

(source: _MatSliderRangeThumb)

Source from the content-addressed store, hash-verified

703
704 /** Updates the UI of slider thumbs when they begin or stop overlapping. */
705 private _updateOverlappingThumbUI(source: _MatSliderRangeThumb): void {
706 if (!this._isRange || this._skipUpdate()) {
707 return;
708 }
709 if (this._thumbsOverlap !== this._areThumbsOverlapping()) {
710 this._thumbsOverlap = !this._thumbsOverlap;
711 this._updateOverlappingThumbClassNames(source);
712 }
713 }
714
715 // _MatThumb styles update conditions
716 //

Callers 1

_onTranslateXChangeMethod · 0.95

Calls 3

_skipUpdateMethod · 0.95
_areThumbsOverlappingMethod · 0.95

Tested by

no test coverage detected