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

Method _onPointerUp

src/material/slider/slider-input.ts:485–499  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 1

_onPointerUpMethod · 0.45

Calls 2

_setIsFocusedMethod · 0.95
_updateWidthInactiveMethod · 0.95

Tested by

no test coverage detected