emilk / emilk/egui

Dragging windows allows cursor to become detached from original location

Open
#4,441 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
30.6k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
72

Description

I recently upgrade our project from 0.25 to 0.27 and noticed the dragging of windows now allows the mouse to be detached from the window being dragged, which I don't think is desirable as it results in awkward dragging.

I noticed that this is not unique to windows or our project, as you can easily replicate it in the web version (egui.rs) as well by just dragging windows into the side bars

Left: 0.25.0 -- right: 0.27.2

https://github.com/emilk/egui/assets/16842774/750fa65a-a0ec-4e4d-b5a9-1220cfdc4f2e

Contributor guide

Open the contributing guide

Research direction

Reproduce the dragging behavior in the web version at egui.rs, especially when moving windows into the side bars, and compare it with the reported 0.25.0 and 0.27.2 behavior. Trace the window-dragging and pointer handling code; done means the cursor remains attached to the dragged window during this interaction.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, wasm
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.