79407980

Date: 2025-02-03 06:30:55
Score: 1
Natty:
Report link

So i came over this post where i finally found the working solution for me. I think everyone should know this little trick as it can save costs and lots of time. The classic, well-known Apple issues - year after year ...

https://blog.cotten.io/desktop-safari-still-hates-instanceof-touchevent-1fcdda8409d5

The trick is to use: const isTouch = ("touches" in e); instead of const isTouch = e instanceof e;

Which is strange but i think we have to deal with it :D

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: David Stögmüller