TCastleFloatSlider - anchor point of the thumb

Hi,

I try to make a color picker for my rally game instead of premade colors.

My problem with the thumb of the TCastleFloatSlider is, that the ancher point is on the left. When clicking the thumb with the mouse curser in the middle, it jumps to the right (Time Warp? :smile: ). It’s hard to describe.

Can I make the anchor in the midddle of the thumb? For my taste this is more what the user would expect.

What do you think?

Testing, I could exactly see what you mean. I honestly don’t know / remember why I made it like that :slight_smile: What you propose (position of the click determines where the middle of the indicator will be) makes more sense to users indeed.

Fixed in Drag the middle of thumb for TCastleAbstractSlider · castle-engine/castle-engine@abc0248 · GitHub .

1 Like

Yeah, looks great.

Thank you so much!