Skip to content

Conversation

@JacobCutshall
Copy link
Contributor

@JacobCutshall JacobCutshall commented Dec 4, 2025

Pull Request

Description

I downloaded athas today to my Debian machine and noticed I couldn't really drag the window around. I looked at the Tauri documentation for data-tauri-drag-region and it says in a Note:

"data-tauri-drag-region" will only work on the element to which it is directly applied. 
If you want the drag behavior to apply to child elements as well, you’ll need to add it 
to each child individually.

This behavior is preserved so that interactive elements like buttons and inputs can function properly.

With that information I inspected the custom-title-bar and noticed the div with data-tauri-drag-region was mostly filled by the next child div labeled {/* Left side */}. Adding data-tauri-drag-region to this div fixed the issue by allowing the child that fills up moist of the space to also act as the drag region. The menu still works as expected.

  • Added data-tauri-drag-region to the Left side div in custom-title-bar.tsx

Related Issues

Closes #450

@mehmetozguldev mehmetozguldev self-requested a review December 13, 2025 16:46
Copy link
Member

@mehmetozguldev mehmetozguldev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you

@mehmetozguldev mehmetozguldev merged commit 4c35cb8 into athasdev:master Dec 13, 2025
2 checks passed
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.

Issue with dragging the window

2 participants