Scale touch input to logical resolution

Closes #1286