I am dealing with an issue with my WebView key forwarding on Windows (with JUCE 8). I am forwarding letters using native function from js to the host. If I hold down a key (for musical typing), the message thread seems to get increasingly blocked with information and the mouse will severely lag(it will be smooth initially and within 2-3 seconds it is essentially unusable). Arrow keys (up and down) are used in the UI but not forwarded to the host, and if I press one of these keys (or hold one of these keys down) it is as though the thread is unblocked and the mouse works perfectly (and I can still hold the same note / chord without disruption).
I am getting the same behavior with a local server in a chrome browser (Windows-only), and have intermittently noticed this on other web pages as well. No issues on macOS (which makes me think it must be something with WebView2).
A few things I have tried without success: prevent repeat key presses in JS, experimenting with rendering frame rate (outside of this issue, performance is very smooth), removing any of my other native function calls that are sending data to my webview. Just to repeat, I hold a note - the mouse gets slower and slower, I press or hold down an arrow key (note still held), my mouse works perfectly.
Anybody had a similar experience? Is there something simple I might be missing?
Windows laptop - 2024 Asus Rog Zephyrus with 32GB ram and RTX4090 GPU. Happy to share any code as well. Thank you in advance!
