Can you forgive my quirky question? I'm facing a problem with drag/drop events while working on an Electron project.
The issue goes like this:
- During development (using Vue / Electron-builder, etc.), I run in "electron-builder:serve" mode. This mode respawns the application browser window whenever I make code changes. It's helpful because it saves time and prevents the compiler from re-compiling all my JavaScript for small changes.
- However, it seems that there is a lingering DOM instance, causing double triggering of events when I try to "drop" a file onto my application window. The number of events triggered equals the number of times the application window has respawned.
- This annoyance leads me to shut down the dev server and restart it so that only one event is handled.
I hope I've explained the problem clearly. There's no code involved; just a query about the setup. Ideally, I would like the application to handle a single drop event every time I respawn during development.
This doesn't seem like a production issue but rather a troublesome aspect of development.