The error stems from the op listening to a touch event which isn't supported by safari. TouchEvent is a JS class.
The error isnt from the type. the code not the type is throwing the erro