Handling pointerout, pointercancel. close #302