Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
slider: add support for changing by clicking on the slider without having started to drag from the handle #6695
The idea is that in many other implementation of a slider, it's possible to directly click/tap on a target value to change the slider, rather than to grab the handle first, which can be a bit annoying. There's a bit of almost-duplicate code compared to the mousemove event handler, but it seemed overkill to create another function before get_cursor_position for this.