This addresses two issues I found with the slider.
When clicking once in a location, the offset of the slider is not centered.
When dragging the slider to the edges, the slider is not compensating for its width.
I also removed an extra branch, did the calculations for the slider value after we calculate everything, and removed the weird (additional) setting of the slider values (:2999-:3000)
Both seen here:
And the fixed version:
This needs tested with styles that have borders/padding.
This addresses two issues I found with the slider.
I also removed an extra branch, did the calculations for the slider value after we calculate everything, and removed the weird (additional) setting of the slider values (:2999-:3000)
Both seen here:![bug](https://github.com/raysan5/raygui/assets/577382/71e8b34f-7094-45f5-adc7-abbd78a4fb77)
And the fixed version:![fixed](https://github.com/raysan5/raygui/assets/577382/eb315bad-710d-4b6f-a4e5-aae35113082d)
This needs tested with styles that have borders/padding.