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

When using DragGestureRecognizer, the drag target does not have Scale applied. #23748

Open
dailyhw opened this issue Jul 22, 2024 · 4 comments
Open
Labels
area-gestures Gesture types platform/android 🤖 platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@dailyhw
Copy link

dailyhw commented Jul 22, 2024

Description

When placing objects such as BoxView with DragGestureRecognizer registered on a Grid, the scale is not applied to the preview image that appears when the object is dragged.

1

The drag and drag preview without size adjustment.

2
3

After adjusting the scale of the placed Grid or BoxView and then dragging, the size of the preview remains unchanged. It appears in its original size.

4
5

After adjusting the Width and Height of the Grid or BoxView and then dragging, the size of the preview changes accordingly. It appears in the adjusted size.

Steps to Reproduce

  1. Create a new Maui program.
  2. Add a Grid and then add a BoxView to the Grid.
  3. Add a DragGestureRecognizer to the BoxView.
  4. Adjust the Scale, Width, and Height of the Grid and BoxView and attempt to drag.
  5. Check the size of the drag preview image in each situation.

MauiApp1.zip

Link to public reproduction project repository

No response

Version with bug

8.0.10 SR3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android, Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

@dailyhw dailyhw added the t/bug Something isn't working label Jul 22, 2024
Copy link
Contributor

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:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@kevinxufei
Copy link

I can repro this issue at Windows & Android platform on the latest 17.11.0 Preview 4.0 (8.0.70 & 8.0.61 & 8.0.10).

@kevinxufei kevinxufei added platform/windows 🪟 platform/android 🤖 s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 22, 2024
@MartyIX
Copy link
Contributor

MartyIX commented Jul 22, 2024

Btw: The snipping tool in Windows provide a way to capture a video so one can see the issue easily.

@PureWeen PureWeen added this to the Backlog milestone Jul 22, 2024
@dailyhw
Copy link
Author

dailyhw commented Jul 23, 2024

Btw: The snipping tool in Windows provide a way to capture a video so one can see the issue easily.

Thank you, this method will be very helpful if I have to raise an issue again in the future!

@samhouts samhouts added the area-gestures Gesture types label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-gestures Gesture types platform/android 🤖 platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants