开发者

usability issue with nested scroll views on ios

开发者 https://www.devze.com 2023-03-19 19:35 出处:网络
I have a horizontal scroll view with paging enabled, and the children of this scroll view are vertical scroll views. It\'s like the iOS home screen, but imagine scrolling vertically on each home scree

I have a horizontal scroll view with paging enabled, and the children of this scroll view are vertical scroll views. It's like the iOS home screen, but imagine scrolling vertically on each home screen.

Now, when the vertical scroll is in progress, it's hard to swipe to the next or previous screen, because the vertical scroll view apparently captures the events. Even if the angle of the swipe is almost horizontal, it doesn't go to the next or previous "page". Only after the scroll stops fully can one easily swipe to the next or previous pages.

Unfortunately, because of the slow deceleration, the user might think the content stopped moving when it is in fact moving very slowly and just about to stop. But the horizontal swipe is interpreted as a vertical scroll gesture, and the scroll velocity increases, making things worse from the 开发者_StackOverflow中文版user's perspective.

I've noticed multiple people struggling with this when they test out our app, and I wonder if anyone here knows a solution, perhaps a way to consider the angle of the swipe to determine which scroll view should process the event. Thanks.


I would suggest stopping the vertical scroll on a touch begins event. This is how most apps I've seen do something like this.

0

精彩评论

暂无评论...
验证码 换一张
取 消