Browse Source

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 <5153846+dwelle@users.noreply.github.com>
pull/10032/head
Davide Wietlisbach 3 months ago committed by GitHub
parent
commit
dcdeb2be57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/excalidraw/data/filesystem.ts

2
packages/excalidraw/data/filesystem.ts

@ -14,7 +14,7 @@ import type { FileSystemHandle } from "browser-fs-access"; @@ -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[];

Loading…
Cancel
Save