Skip to content

Commit

Permalink
chore: Reverted unneeded change
Browse files Browse the repository at this point in the history
  • Loading branch information
CatchABus committed Jul 7, 2024
1 parent b254397 commit ece798d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/SliderBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ece798d

Please sign in to comment.