Added support for proper touch handling.