fixes #17810 touch/pointer events feature detection.