Your screenshot is not enough to debug this, but your setup looks a lot like this issue:
[Bug report] Losing focus / input axis values 0 after releasing mouse button.
Your screenshot is not enough to debug this, but your setup looks a lot like this issue:
[Bug report] Losing focus / input axis values 0 after releasing mouse button.