Skip to content

Conversation

@eumario
Copy link

@eumario eumario commented May 23, 2025

Updated Window Moving behavior to use DraggablePanel to allow moving the full window from within the DraggablePanel, instead of the WindowPanelContainer. Fixes issue where Moving the window would jitter, and not move properly with the window, due to multiple signal execution, causing jitter to occur, and offset to constantly be set.

eumario added 4 commits May 23, 2025 00:20
Added ToVector2I() for Vector2.
Changed from Panel to Control
Internalized Moving Window to said control, instead of having it on the WindowPanelContainer.
Moved to GuiInput to handle capturing of Mouse Button events, and toggling on/off grabbing the DraggablePanel.
Used _Process to directly move the main window.
Updated UI Elements to use new DraggablePanel content.
On Windows with Close Buttons, placed DraggablePanel inside of HBoxContainer, and placed an Empty Control where the Close Button would be, ensuring enough space to allow Mouse to fully interact with the Close Button.
Ensured that DraggablePanel captures Mouse Inputs, while the Empty Control, will ignore them.
@Dowsley
Copy link
Owner

Dowsley commented Aug 5, 2025

Hey! I really appreciate your PR, it's the first external contribution for the project. I'm sorry for taking long to respond, I was right in the process of moving. But here I am.

I tested the code on the branch. While it does seem to fix jittering on 1x, it's causing some weird behaviour on 2x size mode:

Kapture.2025-08-05.at.12.21.59.mp4

It might not be worth fixing this for now. I am restarting development for this project as of this week, and one of my immediate goals is getting actual OS windows instead of a canvas with transparency. By then - the structure will look completely different.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants