Remove deprecation warnings from TouchEvent