소스 검색

Holy ... how this was fun

sebavan 5 년 전
부모
커밋
53772a69c1
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  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";
         }