Cristian Tr
Cristian Tr

Reputation: 716

Can't interact with frameless, transparent BrowserWindow

The main window of my electron app doesn't respond to any actions, as if it has a transparent overlay. All elements are rendered, but I can't press any button or write in input.

This happens only on Windows and only when the frame is set to false

win = new BrowserWindow({ frame: false, transparent: true, resizable: true, alwaysOnTop: true, width: 400, height: 130 });

Any suggestions?

Upvotes: 1

Views: 840

Answers (1)

Cristian Tr
Cristian Tr

Reputation: 716

As @Neil suggested in the comments above, the problem was caused by a -webkit-app-region: drag; rule on a container div. Thanks!

Upvotes: 2

Related Questions