瀏覽代碼

fix: increase rejection delay for opening files with legacy api (#8961)

* Increased input change interval to 1000 ms to fix IOS 18 file opening issue

* increase more

---------

Co-authored-by: dwelle <[email protected]>
Davide Wietlisbach 4 周之前
父節點
當前提交
dcdeb2be57
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/excalidraw/data/filesystem.ts

+ 1 - 1
packages/excalidraw/data/filesystem.ts

@@ -14,7 +14,7 @@ import type { FileSystemHandle } from "browser-fs-access";
 
 type FILE_EXTENSION = Exclude<keyof typeof MIME_TYPES, "binary">;
 
-const INPUT_CHANGE_INTERVAL_MS = 500;
+const INPUT_CHANGE_INTERVAL_MS = 5000;
 
 export const fileOpen = async <M extends boolean | undefined = false>(opts: {
   extensions?: FILE_EXTENSION[];