Benoît Grélard
Benoît Grélard
Hey @latin-1, the current implementation is by design. We interpolate the size of the thumb over the whole range so it doesn't get out of bounds (outside of its natural...
That's not the behaviour I see, you can clearly see it jump here: https://user-images.githubusercontent.com/1539897/220157300-0800a81e-1f4f-4f5b-98ae-1acebde6e921.mp4
I'm sorry I'm not really following. Your initial diagram are showing one thing, and you're talking about something else now which isn't super clear. The position of the the native...
> and in your video, after seek, the cursor is at the center of the thumb. but it's not true for radix-ui Yeah I see that, but I don't think...
> While dragging, the thumb does not follows the cursor properly. I know it doesn't, as I said "we interpolate the thumb width over the whole range" and because we...
I haven't seen many examples of libraries even having an **in-bound** layout like this. Do you know any so we can compare?
Here, to make sure we are talking about the same thing. This is what I mean by: >We interpolate the thumb width over the whole range Current one (in bounds),...
It's not in-bounds right? Or am I missing something? https://user-images.githubusercontent.com/1539897/220168428-d27561de-d8c8-407c-a2a4-5f8d70986954.mp4
Oh I see weird, their `react-aria` seems to be out-bounds, but the `react-spectrum` one which is built on top seems to be in-bounds as you point out. I can't figure...
I think I found it, a combination of margin compensation and width: