Fix touch handling. Closes #63.