Issue with Rotated Vertical Slider inside ScrollView in .NET MAUI (Gesture Conflict) #34002
Unanswered
1942124075
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to implement a vertical slider in .NET MAUI. Since the native Slider control does not have an Orientation property, I used Rotation="-90" to achieve the visual effect.
The Problem: While the rotation works visually, the slider becomes unusable when placed inside a parent container that supports vertical scrolling (like a ScrollView or a CollectionView).
When I try to drag the slider thumb, the application interprets the gesture as a scroll event for the page, causing the page to scroll instead of moving the slider. The slider's drag gesture seems to be swallowed by the parent's scroll gesture.
What I'm looking for: Is there a robust way to implement a vertical slider that:
Renders correctly.
Handles touch events properly without conflicting with the parent ScrollView?
Any suggestions or workarounds (perhaps using a Custom Handler or a different control composition) would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions