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

Method _areThumbsOverlapping

src/material/slider/slider.ts:683–690  ·  view source on GitHub ↗

Returns true if the slider knobs are overlapping one another.

()

Source from the content-addressed store, hash-verified

681
682 /** Returns true if the slider knobs are overlapping one another. */
683 private _areThumbsOverlapping(): boolean {
684 const startInput = this._getInput(_MatThumb.START);
685 const endInput = this._getInput(_MatThumb.END);
686 if (!startInput || !endInput) {
687 return false;
688 }
689 return endInput.translateX - startInput.translateX < 20;
690 }
691
692 /**
693 * Updates the class names of overlapping slider thumbs so

Callers 1

Calls 1

_getInputMethod · 0.95

Tested by

no test coverage detected