This was a strange one. Cursor/touch coordinates are based on the resolution setting in the menus, rather than the current resolution.
I expected the top right corner input position values to be the same as the current resolution, but it turned out to be 720x1280, which is the resolution defined in the project. Resizing the window didn’t change the input position either.
It caused additional issues in combination with this:
(And yes, I know how to solve it in my case, but the touch action should really be based on the current screen resolution rather than the resolution setting in the project)