Hi @javier,
Calibration might help with this issue.
On your Windows machine, search for “calibrate” and select the “Calibrate the screen for pen or touch input” result. Select the primary display and follow the instructions.
Btw, does the touch screen on the primary display work again after disconnecting spacedesk?