beeware / beeware/toga

Unintuitive behavior when clicking on WinForms Slider track

Open
#3,153 1 comment 0 reactions 0 assignees View on GitHub
bug windows
Dominant language
Python
Stars
5.4k
Forks
827
Avg merge
9h 45m
Merged PRs (30d)
58

Description

### 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](https://github.com/user-attachments/assets/3ec335b0-f56b-41f6-ab54-a2bd82c45143)
![slider_click](https://github.com/user-attachments/assets/f21fba50-d233-41af-b007-431d124c00f3)

Also, this too, increments by 1 or 2 on every mouse click or drag update:
![image](https://github.com/user-attachments/assets/9e07d0f2-848d-4b61-8694-a52baf046f0e)
![slider_no_ticks](https://github.com/user-attachments/assets/a2caca2f-02de-41d1-91b2-1d560e27eccd)

On Android works just fine without changing any code.

Contributor guide

Open the contributing guide

Research direction

Start by reading the linked discussion #3152 and locating Toga's Windows WinForms slider entry point; reproduce the ticked and unticked click/drag cases described there. Done means clicks and drag updates report the position users select in both cases, matching the behavior described for Android.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.