toga icon indicating copy to clipboard operation
toga copied to clipboard

Unintuitive behavior when clicking on WinForms Slider track

Open mhsmith opened this issue 10 months ago • 1 comments

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: image slider_click

Also, this too, increments by 1 or 2 on every mouse click or drag update: image slider_no_ticks

On Android works just fine without changing any code.

mhsmith avatar Feb 03 '25 14:02 mhsmith

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.

mhsmith avatar Feb 03 '25 14:02 mhsmith