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.06k stars 1.73k forks source link

MAUI IOS - Listview click events not working after scrolling with Scrolled handler #23614

Open Maupan13 opened 3 months ago

Maupan13 commented 3 months ago

Description

1- Without using Scrolled handler, all scrolling actions cause listview return on the first item. 2 - Using Scrolled handler, the scrolling works, but any click on the image buttons existings in listview items not work any more. Clicks on items image button work only if I do not perform any vertical scrolling.

Steps to Reproduce

  1. Create a Xaml ContentPage with a grid containing a listView like <ListView Grid.Row="8" x:Name="RigheOrdineListView" Margin="0,5,0,10" ItemsSource="{Binding righeOrdine}" HasUnevenRows="True"

    VerticalScrollBarVisibility="Always" IsPullToRefreshEnabled="True" IsRefreshing="{Binding IsBusy, Mode=OneWay}" VerticalOptions="FillAndExpand" CachingStrategy="RecycleElementAndDataTemplate" ItemSelected="RigheOrdineListView_ItemSelected" SeparatorVisibility="None" Scrolled="RigheOrdineListView_Scrolled" ios:ListView.RowAnimationsEnabled="False"

  2. Run the app, and check that clicks on imagebuttons of the items (edit and delete actions) work normally

  3. Scrolldown the listview

  4. Check that the clicks on the imagebuttons of the items don't work and cause only a little scrolling.

Link to public reproduction project repository

No response

Version with bug

8.0.70 SR7

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

No response

github-actions[bot] commented 3 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.

Zhanglirong-Winnie commented 3 months ago

This issue has been verified using Visual Studio 17.11.0 Preview 3.0(8.0.70 & 8.0.61). Can repro on iOS platform.