fix(input): pause mouse capture and warp while dragging or resizing the window #551
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!551
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-551"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Glory-star on GitHub · 2026-11-28 00:39 UTC · original
pr/fix-mouse-warp-window-drag→main· +38 −5 · 1 files · 1 commits · closed without mergingProblem
When
VICTORY_MOUSE_WARP=1andVICTORY_MOUSE_CAPTURE=1are enabled in windowed mode, grabbing the title bar to drag or resize the window triggersWM_MOVE/ capture logic that re-clips and warps the cursor back to the window center mid-drag, causing the window to jump across the screen.Fix
crates/victory-hle/src/modules/lifecycle.rsonWM_NCLBUTTONDOWN/WM_ENTERSIZEMOVE, and resume cleanly onWM_EXITSIZEMOVEor client-area click (WM_LBUTTONDOWN).Verification
VICTORY_MOUSE_CAPTURE=1andVICTORY_MOUSE_WARP=1: window drags and resizes smoothly without cursor warp interference, and camera capture resumes on click inside the game window.Pull request closed