()
| 483 | } |
| 484 | |
| 485 | _onPointerUp(): void { |
| 486 | if (this._isActive) { |
| 487 | this._isActive = false; |
| 488 | if (this._platform.SAFARI) { |
| 489 | this._setIsFocused(false); |
| 490 | } |
| 491 | this.dragEnd.emit({source: this, parent: this._slider, value: this.value}); |
| 492 | |
| 493 | // This setTimeout is to prevent the pointerup from triggering a value |
| 494 | // change on the input based on the inactive width. It's not clear why |
| 495 | // but for some reason on IOS this race condition is even more common so |
| 496 | // the timeout needs to be increased. |
| 497 | setTimeout(() => this._updateWidthInactive(), this._platform.IOS ? 10 : 0); |
| 498 | } |
| 499 | } |
| 500 | |
| 501 | _clamp(v: number): number { |
| 502 | const min = this._tickMarkOffset; |
no test coverage detected