maui icon indicating copy to clipboard operation
maui copied to clipboard

DragInteraction crashes GraphicsView embedded in ScrollView when deployed to Android device

Open Equabyte opened this issue 9 months ago • 2 comments

Description

When a GraphicsView with DragInteraction event handler is embedded in ScrollView, the application crashes at startup. This is only visible when starting the app from the device (no crash occurs in debug mode from Visual Studio).

Steps to Reproduce

  1. Create a MAUI app having at least one GraphicsView with DragInteraction event handler embedded in ScrollView;
  2. deploy the app to an Android device or emulator, and run the app on the device itself (or emulator), independently from Visual Studio: the app will crash at startup.

Link to public reproduction project repository

https://github.com/Equabyte/GraphicsView_CrashTest

Version with bug

8.0.20 SR4

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 14 (SDK34)

Did you find any workaround?

No workaround. Also another issue was reported a while ago where someone else highlighted DragInteraction won't propagate to GraphicsView when embedded in ScrollView. See https://github.com/dotnet/maui/issues/7483

Relevant log output

No response

Equabyte avatar May 15 '24 19:05 Equabyte