#.setIgnoreCursorEvents only working for appWindow

3 messages · Page 1 of 1 (latest)

daring pulsar
#

I want to create a new window which acts as an overlay, now im trying to ignore cursor events , but it only works with the appWindow property.

const overlay = new WebviewWindow('overlay', {
    url: '../overlay.html',
    acceptFirstMouse: false,
    alwaysOnTop: false, // TODO: change to true
    center: true,
    closable: false,
    decorations: false,
    fileDropEnabled: false,
    focus: true,
    fullscreen: true,
    hiddenTitle: true,
    maximizable: true,
    maximized: true,
    minimizable: false,
    resizable: false,
    skipTaskbar: true,
    titleBarStyle: 'transparent',
    transparent: true,
    visible: true,
});

await overlay.setIgnoreCursorEvents(true);
faint girder
#

I quickly abandoned it because it wasn't necessary to my project, but the first thing I did for an overlay was to create a fullscreen full transparent that ignore clicks, then inside of it I made a movable div that I could move and it had everything in it. It might not be the best solution, but it is one

daring pulsar