Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag drop position is off with canvas_items stretch mode #58302

Closed
seankarol opened this issue Feb 19, 2022 · 1 comment · Fixed by #59709
Closed

Drag drop position is off with canvas_items stretch mode #58302

seankarol opened this issue Feb 19, 2022 · 1 comment · Fixed by #59709

Comments

@seankarol
Copy link

Godot version

v4.0.alpha.custom_build [887d4bd]

System information

Windows 10, Vulkan, NVIDIA GeForce RTX 2070 SUPER

Issue description

The positions drag and drop is detecting other controls seems to be calculated wrong when using canvas_items stretch mode and a resized window.

Steps to reproduce

  1. Set up two controls for drag and drop
  2. Set window stretch mode in project settings to canvas_items
  3. Resize window either resizing during runtime or setting window width/height override
  4. Try to drag the controls onto each other
  5. The position the controls detect each other for drag and drop is incorrect (off screen in MRP)

Minimal reproduction project

drag_drop_bug.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants