@IsoWalle said in Funny slider?:
@civet I tried messing around a little with your code and I noticed that it takes the value from where the mouse is and not from where the "dragger" is. So if you click and drag and continue outside the "triangle" the value keeps changing.
Any way to make it stop?
Sorry, I just wrote some dirty code to prove that it works.
It takes more work to finish a custom component, such as redraw the appearance, encapsulation with namespace, configure parameters more flexibly, etc.
And there are many other implementations.
I just modified the code and added some comments on it, hope this helps.