DrawerView icon indicating copy to clipboard operation
DrawerView copied to clipboard

Cannot reliably scroll horizontally with nested scrollView

Open KesWalker opened this issue 8 months ago • 1 comments

I use the DrawerViewto host my SwiftUI views like so:

VStack{
  ScrollView(.vertical){
    ScrollView(.horizontal){
      AnyView()
    }
  }
}

Trouble is, unless I scroll perfectly horizontally, the drawer view tries to close/open if my finger moves up or down slightly.

This will even happen when the parent ScrollView(.vertical) is scrolled to the bottom, meaning I will end up with a collapsed drawer view but the ScrollView(.vertical) won't be scrolled to the top.

KesWalker avatar Jun 19 '24 09:06 KesWalker