* implemented gesture detector method for handling pointer events