Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: animate can cause wrong state #150

Open
EinfachHans opened this issue Jun 22, 2024 · 0 comments
Open

bug: animate can cause wrong state #150

EinfachHans opened this issue Jun 22, 2024 · 0 comments

Comments

@EinfachHans
Copy link

Description

First: I really like this package. Thank you for that awesome work! Today i experienced two bug:

Bug 1

First one is easy explained. With a value of 0 and a max value > 0, you still see a little bit filled:

Bildschirmfoto 2024-06-22 um 17 38 11

This is also easily reproduceable through the live demo on your docs page.

Bug 2

The second bug is a little bit trickier. From my debugging: It seems that if animate is set to true in a special case you can have this outcome with min: 0, max: 2 and value: 0:

Bildschirmfoto 2024-06-22 um 17 39 07

Steps to reproduce:

  1. min: 0, max: 3 and value: 1
  2. Update value to 0 (_oldChangeVal will be 1)
  3. Then update max to 2

When animate is false this does not happen. I guess somehow the _oldChangeVal is the problem)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant