From ece798dfdadf186147845f63c271e7b1a798c5f4 Mon Sep 17 00:00:00 2001 From: Dimitris - Rafail Katsampas Date: Sun, 7 Jul 2024 13:48:01 +0300 Subject: [PATCH] chore: Reverted unneeded change --- src/SliderBase.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SliderBase.ts b/src/SliderBase.ts index 01ec9f6b..68051258 100644 --- a/src/SliderBase.ts +++ b/src/SliderBase.ts @@ -204,7 +204,9 @@ export class SliderBase extends ProgressBar { this.dragging = 1; - this.startX = this.bg.parent.worldTransform.applyInverse(event.global).x; + const obj = event.currentTarget as DragObject; + + this.startX = obj.parent.worldTransform.applyInverse(event.global).x; this.startUpdateValue1 = this._value1; this.startUpdateValue2 = this._value2;