emoon / rust_minifb

Cross platfrom window and framebuffer crate for Rust
MIT License
1k stars 95 forks source link

get_mouse_down returns true even after releasing the mouse button from outside the window and coming back in without pressing #280

Closed arnabanimesh closed 2 years ago

arnabanimesh commented 2 years ago

Let's say I click inside the window and start dragging. In the meantime, the cursor goes outside the window and the mouse button is released. If I bring back the cursor once again inside the window, the library thinks that the button is still pressed even though it has been released.

OS: Windows 11 x64

emoon commented 2 years ago

Thanks for the report. I will try to take a look at it today.