toga
toga copied to clipboard
Unintuitive behavior when clicking on WinForms Slider track
Discussed in https://github.com/beeware/toga/discussions/3152
Originally posted by alpharou February 3, 2025
On windows clicking a slider with ticks somewhere except the handle does not reflect correctly:
Also, this too, increments by 1 or 2 on every mouse click or drag update:
On Android works just fine without changing any code.
It looks like the standard behavior of the native control is to move the handle towards the click, not to the actual location of the click. For example, see this discussion. However, the distance it moves is controlled by the LargeChange property, which we're currently leaving at its default value. We should set it to something consistent with the other scale properties.