Closed timlg07 closed 3 years ago
@lociero Thanks for the link, I didn't knew this. Looks like the beforeunload
-listener used by the titlebar of this library causes this behaviour. Do you happen to know a good work around?
@timlg07 I'm just sitting on 8.5.5 since I didn't find any workaround.
@lociero hm that sucks... But thank you very much for the responses!
I don't have any sort of problem like this, using 11
@ericblade What times do you get when you try out the example I linked? And which (custom-electron-titlebar) version are you on?
Describe the bug When using the custom-electron-titlebar it takes much longer to close a window. In numbers: The time between the call of the close and closed events is at
frame: true
)frame: false
).A possible "fix" would be to add
which drives down the close time to around 5 - 10 ms, but seems like a bad idea to use.
Note: When using the custom-electron-titlebar it makes a difference whether you use
frame: true
orfalse
. This is not the case when the custom-electron-titlebar is not used: The close time with the hidden frame is still very low at around 10 ms.To Reproduce Steps to reproduce the behavior:
frame: true
andframe: false
or with and without using the custom-electron-titlebar and read the console output.Desktop: