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

Windows ScrollView does not pass touch to parent pan gesture when scroll using screen touch #5189

Open Sasikumar3595 opened 2 years ago

Sasikumar3595 commented 2 years ago

Description

We are using the custom layout that holds the vertical scroll view and the custom layout has a pan gesture to handle the horizontal swipe. It was not working correctly while scrolling the scroll view using screen touch in windows. Guide us to resolve the issue.

        Grid customGrid = new Grid();
        StackLayout customStckLayout = new StackLayout();
        for(int i =0; i < 100; i++)
        {
            customStckLayout.Add(new Grid()
            {
                BackgroundColor = Colors.Red,
                Margin = new Thickness(1),
                HeightRequest = 50,
            });
        }
        ScrollView customScrollView = new ScrollView();
        customScrollView.Orientation = ScrollOrientation.Vertical;
        customScrollView.Content = customStckLayout;
        customGrid.Add(customScrollView);
        PanGestureRecognizer pan = new PanGestureRecognizer();
        pan.PanUpdated += Pan_PanUpdated;
        customGrid.GestureRecognizers.Add(pan);
       this.Content = customGrid;

Steps to Reproduce

  1. Create the custom layout with scroll view
  2. Add pan gesture to the custom layout
  3. Check the pan gesture by pan the custom layout by mouse/trackpad
  4. Scroll the scroll view using screen touch
  5. Again try to swipe the custom layout does not triggered pan updated event.

Version with bug

Preview 13 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 10.0.17134.0

Did you find any workaround?

No

Relevant log output

Not Applicable

PineYi commented 2 years ago

Verified Repro with Windows. Repro Project is available: #5189.zip

ghost commented 2 years ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

jinxinjuan commented 1 year ago

Verified this issue on 17.6.0 Preview 6.0. Repro with sample project #5189.zip