Skip to content

Commit

Permalink
0.10.8: Fix missing repaint when changing Slider#minValue/maxValue
Browse files Browse the repository at this point in the history
  • Loading branch information
rafern committed Oct 1, 2024
1 parent 4fecd84 commit d9bd753
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lazy-widgets",
"version": "0.10.7",
"version": "0.10.8",
"description": "Typescript retained mode GUI for the HTML canvas API",
"main": "dist/index.js",
"module": "dist/index.js",
Expand Down
2 changes: 2 additions & 0 deletions src/widgets/Slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ export class Slider extends Widget {
}

this._minValue = minValue;
this.markWholeAsDirty();
}

get minValue(): number {
Expand All @@ -185,6 +186,7 @@ export class Slider extends Widget {
}

this._maxValue = maxValue;
this.markWholeAsDirty();
}

get maxValue(): number {
Expand Down

0 comments on commit d9bd753

Please sign in to comment.