Prevent maximizing on double-click using `-webkit-app-region:drag
See original GitHub issueHi,
I have the opposite issue of #2210.
I’m using the -webkit-app-region:drag
css style on my body.
I would like to use drag-drop functionality for my nw-windows, without giving the possibility to maximize them by doubleclicking, because those windows aren’t supposed to be maximized at all.
I have tried to overwrite the onclick event on the whole body of my window:
document.onclick=function(e){
e.preventDefault();
}
but this doesnt have any impact.
Is they anyway to have the drag-drop behaviour without also having the doubleclicking behaviour ?
<bountysource-plugin>
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>
Issue Analytics
- State:
- Created 9 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Double click the element with style "-webkit-app-region: drag;"
Double click the element with style "-webkit-app-region: drag;" to maximize the window leads to an error that "maximize" button does not change.
Read more >Prevent maximizing on double-click using `-webkit-app-region:drag
Prevent maximizing on double-click using `-webkit-app-region:drag ... Hi,. I have the opposite issue of #2210. I'm using the -webkit-app-region:drag css style on ...
Read more >Window Customization | Electron
By default, the frameless window is non-draggable. Apps need to specify -webkit-app-region: drag in CSS to tell Electron which regions are draggable (like...
Read more >Frameless Window in ElectronJS - GeeksforGeeks
Applications need to specify the -webkit-app-region: drag CSS property to tell Electron which regions are draggable. To make the whole window ...
Read more >Safari Technology Preview Release Notes - Apple Developer
Send notifications to people who opt-in on your website or web app with Safari ... to get a snapshot as when using only...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Using this method (thx my friend), work much better.
We can close this