Electron prevents double-clicking of the mouse to enlarge the window

after setting the element to a draggable state using css"s -webkit-app-region: drag in electron, it is found that double-clicking on the element triggers

the maximization method of the system, try to use js to disable double-click and click events of this element, and css"s pointer-events: none all have no effect, is there

is there a way to solve this problem?

Feb.23,2022

scenario 1: set resizable to false

mainWindow = new BrowserWindow({
    height: 563,
    width: 1400,
    resizable: false
  })

scenario 2: set the program to be frameless, and then write the window operation code yourself

mainWindow = new BrowserWindow({
    height: 563,
    width: 1400,
    frame: false
  })

clipboard.png


in the render process require ('web-frame'). SetZoomLevelLimits (1,1);


the first method has no effect, after dragging, this property has no effect,
the second is useless,

is set to have no border, and then you need css to drag, and then cause a double click to enlarge, and then you don't know how to disable

.
mainWindow = new BrowserWindow({
    //
    resizable: false
  })
  • How to get cookie by vue-electron

    scenario: use electron to package vue applications. attempt: an .html demo is established. The session of the main process can be obtained through node, and the cookie can be obtained <script> var session = require( electron ).remote.sessi...

    Apr.13,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf2572-31de5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf2572-31de5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?