I upgraded to 8.9.1 on both ends (server and client) and the problem still happens.
If I open an libeoffice calc or qterminal through NoMachine and then close the connection, the app on the bare metal doesn’t scroll with the mouse scroll wheel.
Thunderbird scrolls.