Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag drop gestures seemingly randomly gets eaten on Windows desktop when dragging outside application #6321

Open
BreyerW opened this issue Apr 20, 2022 · 6 comments
Labels
area-gestures Gesture types p/2 Work that is important, but is currently not scheduled for release platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working t/desktop The issue relates to desktop scenarios (MacOS/MacCatalyst/Windows/WinUI/WinAppSDK)
Milestone

Comments

@BreyerW
Copy link

BreyerW commented Apr 20, 2022

Description

Since MAUI entered RC stage i decided to see how far is MAUI able to implement MDI manager (multi document interface). When testing drag/drop gestures on window 10 laptop in VS 2022 maui template project i noticed that dragging images/text outside application sometimes just disappear w/o being actually dropped. Eg. Call stack window in VS 2022 seems to ALWAYs eat my drags whenever i step out of application window even when i didnt release mouse button

Steps to Reproduce

  1. new maui app

  2. replace MainPage.xaml with this `

         <Label 
             Text="Hello, World!"
             SemanticProperties.HeadingLevel="Level1"
             FontSize="32"
             HorizontalOptions="Center" />
    
         <Label 
             Text="Welcome to .NET Multi-platform App UI"
             SemanticProperties.HeadingLevel="Level1"
             SemanticProperties.Description="Welcome to dot net Multi platform App U I"
             FontSize="18"
             HorizontalOptions="Center" >
             <Label.GestureRecognizers>
                 <DragGestureRecognizer DragStarting="OnDragStarting"/>
             </Label.GestureRecognizers>
         </Label>
    
         <Label 
             Text="Current count: 0"
             FontSize="18"
             FontAttributes="Bold"
             x:Name="CounterLabel"
             HorizontalOptions="Center" />
    
    
         <Button 
             Text="Click me"
             FontAttributes="Bold"
             SemanticProperties.Hint="Counts the number of times you click"
             Clicked="OnCounterClicked"
             HorizontalOptions="Center"
             >
    
         </Button>
    
         <Image
             Source="dotnet_bot.png"
             SemanticProperties.Description="Cute dot net bot waving hi to you!"
             WidthRequest="250"
             HeightRequest="310"
             HorizontalOptions="Center" >
    
         </Image>
    
     </VerticalStackLayout>
    
` (just added drag to label)
  1. Then drag "Welcome to .NET Multi-platform App UI" label outside your application and start moving it randomly over desktop or other application's windows. Sooner or later drop preview will get eaten despite still performing drag event.

Version with bug

Release Candidate 1 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows, I was not able test on other platforms

Affected platform versions

Windows 10

Did you find any workaround?

No

Relevant log output

No response

@BreyerW BreyerW added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Apr 20, 2022
@Redth Redth added this to the 6.0.300 milestone Apr 21, 2022
@Redth Redth added platform/windows 🪟 legacy-area-desktop Windows / WinUI / Project Reunion & Mac Catalyst / macOS specifics (Menus & other Controls)) labels Apr 21, 2022
@XamlTest XamlTest added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels Apr 26, 2022
@XamlTest
Copy link

Verified this issue with Visual Studio Enterprise 17.3.0 Preview 1.0 [32414.199.main]. Not repro on Windows. Sample Project: 6321.zip

@XamlTest
Copy link

@BreyerW We try to drag "Welcome to .NET Multi-platform App UI" label outside your application more times, but not repro your issue, could you try with above project?

@BreyerW
Copy link
Author

BreyerW commented Apr 26, 2022

@XamlTest im getting error

ApplicationId 'com.companyname.mauiapp12' was not a valid GUID. Windows apps use a GUID for an application ID instead of the reverse domain used by Android and/or iOS apps.

not sure how to fix that

as for reproing try to run in debug and from within vs 2022 then drag over call stack window (make sure its visible during debug session). On my machine it repro 100%.

@davidortinau davidortinau added the p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint label Apr 30, 2022
@Redth Redth added p/2 Work that is important, but is currently not scheduled for release and removed p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint labels May 3, 2022
@samhouts samhouts modified the milestones: 6.0.300, 6.0.300-servicing May 4, 2022
@Redth Redth modified the milestones: 6.0-servicing, Backlog Aug 30, 2022
@ghost
Copy link

ghost commented Aug 30, 2022

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.

@samhouts samhouts removed s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Apr 5, 2023
@XamlTest XamlTest added s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version labels Apr 21, 2023
@ghost
Copy link

ghost commented Apr 21, 2023

Hi @BreyerW. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.

You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.

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.

@XamlTest XamlTest removed s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version labels Apr 21, 2023
@Enbi-Zhang
Copy link

Verified this issue with Visual Studio 17.6.0 Preview 7.0. Can repro on windows platform with sample project:
6321.zip
6321

@jinxinjuan jinxinjuan added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels May 24, 2023
@Eilon Eilon added the t/desktop The issue relates to desktop scenarios (MacOS/MacCatalyst/Windows/WinUI/WinAppSDK) label May 10, 2024
@Eilon Eilon added area-gestures Gesture types and removed legacy-area-desktop Windows / WinUI / Project Reunion & Mac Catalyst / macOS specifics (Menus & other Controls)) labels May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-gestures Gesture types p/2 Work that is important, but is currently not scheduled for release platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working t/desktop The issue relates to desktop scenarios (MacOS/MacCatalyst/Windows/WinUI/WinAppSDK)
Projects
None yet
Development

No branches or pull requests

8 participants