Popovers icon indicating copy to clipboard operation
Popovers copied to clipboard

Menus with ScrollView can not scroll

Open xiaoxidong opened this issue 2 years ago • 4 comments

Put a ScrollView inside Menus and can not scroll.

xiaoxidong avatar Jun 17 '22 09:06 xiaoxidong

Yeah, currently menus don't work with ScrollViews. I am working on v1.4.0 though — should be out in a couple days. In that release I can probably get scroll view support working.

aheze avatar Jun 18 '22 02:06 aheze

It seems like development on this project has fallen off?

I'm faced with this issue where my popover contents requires a ScrollView - any ideas on how to get this to work?

(What I'm seeing is that the scrollview does appear and function but the taps often 'go through' the contents to the underlying scrollview)

richardpineo avatar May 15 '23 21:05 richardpineo

Yeah, I've been working on some other projects... maybe just use a .sheet instead. Popovers is meant for more lightweight views like tips and notifications

aheze avatar May 15 '23 21:05 aheze

As expected, I mis-analyzed this issue. I don't understand everything yet but the issue has to do with the transition of the popover onto the screen. If the user taps too quickly on the displayed popover then the tap goes to the underlying view and transitions the popover away.

We set our animation speed to be very fast and that may have contributed to this issue.

I haven't found the root cause yet, but for some reason there is a delay after .popover before the touches get sent to the containing view as opposed to the visible popover contents.


This turned out to be the way we were sizing the contents of the ScrollView the initial size was the default view height of 10. So actually the popovers library worked correctly - thought I'd follow up here in case it helps anyone else.

richardpineo avatar May 15 '23 22:05 richardpineo