iced-rs / iced

A cross-platform GUI library for Rust, inspired by Elm

Home Page:https://iced.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

daniel-prause opened this issue · comments

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

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

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)

@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?