Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbuck committed Oct 1, 2024
1 parent b1680fa commit 8178f6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/SliderInput/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ class SliderInput extends Element implements IBindable, IFocusable, IPlaceholder

protected _onSlideStart(pageX: number) {
this._domHandle.focus();
window.addEventListener('pointermove', this._onPointerMove, true);
window.addEventListener('pointerup', this._onPointerUp, true);
this._domSlider.addEventListener('pointermove', this._onPointerMove);
this._domSlider.addEventListener('pointerup', this._onPointerUp);

this.class.add(CLASS_SLIDER_ACTIVE);

Expand Down Expand Up @@ -283,8 +283,8 @@ class SliderInput extends Element implements IBindable, IFocusable, IPlaceholder

this.class.remove(CLASS_SLIDER_ACTIVE);

window.removeEventListener('pointermove', this._onPointerMove, true);
window.removeEventListener('pointerup', this._onPointerUp, true);
this._domSlider.removeEventListener('pointermove', this._onPointerMove);
this._domSlider.removeEventListener('pointerup', this._onPointerUp);

if (this.binding) {
this.binding.historyCombine = this._historyCombine;
Expand Down

0 comments on commit 8178f6a

Please sign in to comment.