-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Scroll Gesture Distinction #2
Comments
Edit The maps app only scrolls when at the top height, and the drawer can only close when the scroll view is at the top. |
Helpful tip: I made my own custom drawer a while ago and the trick to preventing internal scroll was to first track the rested height index when dragging occurs with the following update. For your code, simply add the snippet I've flagged with a comment:
And then disable the |
@kylebeard56 thanks for the snippet! I'll look into adding it in the next update. Thanks for the support! |
do you already have any plan to have this in the next update? |
@antranapp I haven't started working on this feature yet. I still have updates for the latest tag v0.0.4-beta which is focused on horizontal layouts. I plan on pushing those changes soon, and then looking into this. I'm also thinking we can get better control of the underlying scroll view with the Introspect package https://github.com/siteline/SwiftUI-Introspect |
Hey there, any news on this one? Appreciate the library! |
Problem
When a
ScrollView
is embedded in the drawer, drags within the scroll view are used as scrolls and do not move the drawer. The current workaround is to have a larger "grabable" area at the top of the drawer.Ideal Solution
When using the maps app, there is a velocity threshold. Drags below the threshold are interpreted as scrolls, while faster drags are used to move the drawer.
Suggested by u/ms4324
The text was updated successfully, but these errors were encountered: