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

Clock example hangs, when you hold down the left mouse button #2323

Open
2 tasks done
daniel-prause opened this issue Mar 11, 2024 · 3 comments
Open
2 tasks done

Clock example hangs, when you hold down the left mouse button #2323

daniel-prause opened this issue Mar 11, 2024 · 3 comments
Labels
bug Something isn't working shell

Comments

@daniel-prause
Copy link

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 you compile and open e.g. the clock example, as soon as you click and hold down your mouse button on the window title bar, the messages don't get processed anymore and the gui doesn't get updated.
It might have something to do with the current winit version.

grafik

What is the expected behavior?

The gui should not freeze while you hold down your mouse button.

Version

crates.io release

Operating System

Windows

Do you have any log output?

No response

@daniel-prause daniel-prause added the bug Something isn't working label Mar 11, 2024
@hecrj
Copy link
Member

hecrj commented Mar 11, 2024

This is a winit issue: rust-windowing/winit#3272

@daniel-prause
Copy link
Author

daniel-prause commented Mar 11, 2024

This is a winit issue: rust-windowing/winit#3272

Thanks for your super quick answer! Maybe we should leave this "non-issue-issue" here so that others can find it and know, what is going on. I saw that you opened the issue over at the winit repo for resizing the window. It might be the same bug in winit that causes the event loop to hang, when you hold down the mouse button.
Edit: It is the same bug .. rust-windowing/winit#3272 (comment)

@daniel-prause
Copy link
Author

daniel-prause commented Mar 11, 2024

@hecrj I saw that you merged a workaround that somebody pushed to winit. This winit workaround doesn't seem to work for the mouse down event, even if I take iced directly from the master branch and compile it. 🤔 Does it only fix the resize bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working shell
Projects
None yet
Development

No branches or pull requests

2 participants