mahozad / wavy-slider

Multiplatform wavy slider/progress bar similar to the one in Android 13
https://mahozad.ir/wavy-slider
Apache License 2.0
130 stars 5 forks source link

Fix the wave height (and the component height) not being accurate #10

Closed mahozad closed 5 months ago

mahozad commented 5 months ago

The wave is currently drawn using cubic bezier curves and its control points have simple y-coordinate of waveHeight / 2. This produces a wave with a height less than the specified waveHeight.

To fix this, do one of the following:

Probably related: