Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix slider behaviour for bigger thumbs #7016

Merged
merged 1 commit into from
Nov 25, 2021
Merged

Conversation

yankun
Copy link
Contributor

@yankun yankun commented Nov 25, 2021

What does the pull request do?

This PR improves / fixes the behaviour of the slider control, which behaves stranger the bigger the thumb becomes. Dragging the thumb, it now moves synchronusly with the pointer all the time.

What is the current behavior?

Dragging the thumb, it always jumps to the right side of ther mouse pointer, while dragging to the maximum value, the thumb slowly moves to the left side of the pointer. This feels strange and not intuitive.

What is the updated/expected behavior with this PR?

Add a slider and drag the thumb. No more jumping to one side of the pointer will occure.

Fixed issues

Fixes #7011

Thumb now moves synchronously with pointer instead of relativ to track position.
@dnfadmin
Copy link

dnfadmin commented Nov 25, 2021

CLA assistant check
All CLA requirements met.

Copy link
Member

@maxkatz6 maxkatz6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
LGTM

@maxkatz6 maxkatz6 merged commit e0bae82 into AvaloniaUI:master Nov 25, 2021
danwalmsley pushed a commit that referenced this pull request Dec 7, 2021
Fix slider behaviour for bigger thumbs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slider doesn't play well with big thumb size
5 participants