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

centerThumbOnTrackEnd(true) makes thumbTouchExpansionRadius unreliable #109

Open
JoseDelPino opened this issue Sep 14, 2024 · 0 comments
Open
Assignees
Labels

Comments

@JoseDelPino
Copy link

If centerThumbOnTrackEnd is set to true and thumbImage is set, the thumb is not fully clickable. The outer most parts of the thumb (left side on the left thumb and right side on the right thumb) cannot be dragged.

MultiValueSlider(value: ratingProxy, minimumValue: 0, maximumValue: 4 )
.orientation(.horizontal)
.outerTrackColor(.lightGray)
.trackWidth(5)
.snapValues([0,1,2,3,4])
.centerThumbOnTrackEnd(false)
.showsThumbImageShadow(false)
.thumbImage(UIImage(systemName: "circle.fill")?.resized(to: CGSize(width: 40, height: 40)).withTintColor(.ranking))
.thumbTouchExpansionRadius(100)
.tint(Color(.ranking))
.frame(height: 50)
.padding(.horizontal, 40)
.opacity(filters.visited == false ? 0.4 : 1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants