Fix touch coordinate calculation.