Returns true if the slider knobs are overlapping one another.
()
| 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 |
no test coverage detected