dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.2k stars 1.75k forks source link

How to disable vertical moving of collection view on ios? #23134

Closed bahoss closed 2 months ago

bahoss commented 4 months ago

Description

https://github.com/dotnet/maui/assets/7480657/97de7cbc-292f-4d6d-bca4-4bf1ab2958b0

When I use a collection view to menu elements with horizontal scroll the collection view moved and refreshed

`<ContentPage x:Class="Aerodrome.Views.MainPage" xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:extension="clr-namespace:Aerodrome.Extensions" xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" BackgroundColor="#F8F8F8" Shell.NavBarIsVisible="False">

` I try to use ScrollView and wrap all in Refresh view and disable, but don't help((( What I do wrong? ### Steps to Reproduce _No response_ ### Link to public reproduction project repository _No response_ ### Version with bug 8.0.60 SR6 ### Is this a regression from previous behavior? Not sure, did not test other versions ### Last version that worked well Unknown/Other ### Affected platforms iOS ### Affected platform versions IOS 17.2 ### Did you find any workaround? _No response_ ### Relevant log output _No response_
github-actions[bot] commented 4 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

bahoss commented 4 months ago

I fixed the refreshing by add `

....
        </RefreshView>`

But how can i disable vertical moving?

npostma commented 4 months ago

I am experiencing the same (sort) of issue. I have a carousel view embedded within a refresh view. On Android, the carousel behaves as expected, moving only horizontally. However, on iOS, the entire carousel can move up and down. I want to disable this vertical movement on iOS. How can we achieve this?

So the refresh view is enabled. But on drag down i expect only the refresh icon, not the whole carousel moving.

QianaJiao commented 3 months ago

Hi,@bahoss @npostma. I tried to paste this code into my template project, but some associated resources are missing. So if possible, could you give me a repo and I'll verify if it still repro on latest version.

dotnet-policy-service[bot] commented 3 months ago

Hi @bahoss. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

dotnet-policy-service[bot] commented 2 months ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback to reproduce the issue but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.