Explorar o código

Holy ... how this was fun

sebavan %!s(int64=5) %!d(string=hai) anos
pai
achega
53772a69c1
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      src/Misc/tools.ts

+ 4 - 2
src/Misc/tools.ts

@@ -292,8 +292,10 @@ export class Tools {
             eventPrefix = "mouse";
         }
 
-        // Special Fallback...
-        if (engine._badDesktopOS && !engine._badOS) {
+        // Special Fallback MacOS Safari...
+        if (engine._badDesktopOS && !engine._badOS &&
+            // And not ipad pros who claim to be macs...
+            !(document && 'ontouchend' in document)) {
             eventPrefix = "mouse";
         }