fix(pdf): ResizeObserver loop completed with undelivered notifications

This commit is contained in:
charlie
2024-10-19 12:01:33 +08:00
parent fd9330f6d0
commit 65c16a4251
2 changed files with 7785 additions and 1 deletions

7784
resources/js/pdf_viewer2.js Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -124,7 +124,7 @@
(defn load-base-assets$
[]
(p/let [_ (util/js-load$ (str util/JS_ROOT "/pdfjs/pdf.js"))
_ (util/js-load$ (str util/JS_ROOT "/pdfjs/pdf_viewer.js"))]))
_ (util/js-load$ (str util/JS_ROOT "/pdf_viewer2.js"))]))
(defn get-page-from-el
[^js/HTMLElement el]