fix(input): pause mouse capture and warp while dragging or resizing the window #551
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Glory-star on 2026-11-28T00:39:58Z.
Problem
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