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

MouseArea's events does not trigger when dragging a file #2597

Open
4 tasks done
7sDream opened this issue Sep 21, 2024 · 0 comments
Open
4 tasks done

MouseArea's events does not trigger when dragging a file #2597

7sDream opened this issue Sep 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@7sDream
Copy link
Contributor

7sDream commented Sep 21, 2024

Is your issue REALLY a bug?

  • My issue is indeed a bug!
  • I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

When the mouse is used to drag and drop files, MouseArea events (on_enter, etc.) are not triggered.

See the screen recording bellow:

GIF 2024-9-22 1-04-06

This bug prevents the typical functionality of highlighting the control that will receive the file during a drag-and-drop operation.

Based on discussions in Discord, the root cause is that winit stops reporting mouse position events during file drag-and-drop operations. See rust-windowing/winit#1550, rust-windowing/winit#2615.

Which seems also the reason of #1642.

What is the expected behavior?

MouseArea events triggered as normal when dragging files.

Version

crates.io release

Operating System

Windows

Do you have any log output?

No response

@7sDream 7sDream added the bug Something isn't working label Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant