separate touch and pointer events detect