Skip to content

Commit

Permalink
fix №171 Error when using slider (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberDex authored Jun 17, 2024
1 parent b97533f commit 8e7ec7c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/SliderBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,20 @@ export class SliderBase extends ProgressBar
this.slider1 = options.slider1;
this.slider2 = options.slider2;

this.fill.eventMode = 'none';

this.min = options.min ?? 0;
this.max = options.max ?? 100;
}

override init(progressBarOptions: ProgressBarOptions)
{
super.init(progressBarOptions);

if (this.fill) {
this.fill.eventMode = 'none';
}
}


/**
* Sets Slider1 instance.
* @param value - Container or string with texture name.
Expand Down

0 comments on commit 8e7ec7c

Please sign in to comment.