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

Allow drag_preview to be handled by a different viewport than its parent #64949

Closed

Conversation

MinusKube
Copy link
Contributor

Fixes #59622

For the visual scripting node dragging, we need to be able to differentiate between the viewport which will handle the drag preview position, and the viewport which will contain the preview in its tree.

I've done that by adding an optional parameter to the control's force_drag and set_drag_preview methods, which defines the control that will be used to determine the preview's parent (the parameter defaults to this if left null).

@Sauermann
Copy link
Contributor

Sauermann commented Nov 29, 2022

An alternative for this PR is #67531, which handles dragging application-wide in the Window-Manger-Window.

@akien-mga akien-mga modified the milestones: 4.0, 4.1 Feb 16, 2023
@akien-mga akien-mga modified the milestones: 4.1, 4.2 Jun 19, 2023
@Sauermann Sauermann modified the milestones: 4.2, 4.3 Sep 26, 2023
@akien-mga akien-mga modified the milestones: 4.3, 4.4 Feb 14, 2024
@akien-mga
Copy link
Member

Superseded by #67531.

@akien-mga akien-mga closed this Feb 14, 2024
@AThousandShips AThousandShips removed this from the 4.4 milestone Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error emitting !get_viewport()->gui_is_dragging() when using set_drag_preview from a sub-window
6 participants