Open EitanRa opened 1 month 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!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
I can repro this issue at Android platform on the latest 17.11.0 Preview 5.0 (8.0.70 & 8.0.61). Sample project: https://github.com/cat0363/Maui-Issue13628
The same problem on my side :( Any update there ?
Description
Converting a Xamarin.Forms project to .NET MAUI, i'm facing a problem with a
Microsoft.Maui.Controls.Maps.Map
inside aScrollView
. In my Xamarin version, I set theScrollView
'sInputTransparent
property totrue
and everything worked well - the scroll view could scroll, the controls inside it responded to user input (button click and so on) and the map could scroll as well, without interrupts from its scroll view parent. But now in MAUI, after settingScrollView
'sInputTransparent
property totrue
(or any other view's InputTransparent property), the result is just as same as setting itsIsEnabled
property totrue
- all of the views inside the scroll view won't respond to any input! Here's the code:public class MyPage : ContentPage { public MyPage() { var sl = new StackLayout { Children = { new Button(), new Map() } }; Content = new ScrollView { InputTransparent = true, Content = sl }; return; } }
UPDATE: Found a solution for Android. Paste this code in MainActivity: `public override bool DispatchTouchEvent(MotionEvent e) { if (e.Action == MotionEventActions.Down || e.Action == MotionEventActions.Move || e.Action == MotionEventActions.Up) { // search MapView Control var maps = (Window.DecorView as ViewGroup).GetChildrenOfType();
}` (source: https://github.com/dotnet/maui/issues/13628)
Steps to Reproduce
Create A .NET MAUI project > Installed Microsoft.Maui.Controls.Maps package version 7.0.59 > Tested on Android
Link to public reproduction project repository
No response
Version with bug
Unknown/Other
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 12
Did you find any workaround?
No response
Relevant log output
No response