-
Notifications
You must be signed in to change notification settings - Fork 51
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
Right-clicking on an element with app-region: drag
shows title bar menu
#3565
Comments
Thanks for catching this! I've added it as a bug on our backlog. |
Hey @leaanthony - This is currently By Design as the intent for the "drag" region is to be used as the titlebar. Do you have a scenario that would benefit from being a drag region outside of the titlebar? |
Hi @champnic - I've added a comment on the w3c spec thread whilst they are still debating it about whether There are certainly scenarios where you would want to define regions that should be draggable and not act like titlebars, for instance frameless non-rectangular applications which win32 provides support for. Apple even provide this in Cocoa for moving NSWindows by their background. So whilst this is closed, I would implore you to consider reopening it, not necessarily to change what Unfortunately, as it is, it means that frameworks like Wails and Tauri will need to continue using JS hacks instead of the native Thanks for your time as always @champnic 🙏 |
Thanks for following up with the w3c spec. Regarding scenarios, I was looking for a scenario where a dev would decide to have a drag region outside of the title bar in their app. Like "Building an app that does 'x' and user expects dragging this area will drag the whole app around" or similar. Do you know of any dev scenarios that need this functionality? |
@leaanthony I'm reopening this issue and changing it to a Feature Request instead of a Bug |
Description
Recently, support was added for the
app-region
CSS property, that allows developers to indicate which elements may be used to drag windows. Right-clicking such a region brings up the default title bar menu. I would expect this to show the default context menu, however I can understand why it does what it does (HTCAPTION message by any chance?). Perhaps this can be configurable?Example
Right-clicking on non-draggable area:
Right clicking on draggable area:
Version
SDK: N/A
Runtime: 114.0.1823.43
Framework: Win32
OS: Windows 11 Pro 22H2 (22621.1778)
Repro Steps
Add
app-region: drag
to any element. Right click on that element.AB#45248037
The text was updated successfully, but these errors were encountered: