ElyPDF: quick strokes and clicks queue behind the last edit instead of being refused (P-05)

This commit is contained in:
ZacharyZhang-NY committed 2026-10-09 22:02:50 -04:00
1 parent 4cec71703b
commit d7a4c37c1f
7 files changed
+82 -10

No files matched your search

+2 -2
View File
@@ -254,11 +254,11 @@ impl PdfView {
return;
}
let author = ely_ui::settings::current(cx).author.clone();
self.settled_edit(what, cx, move |worker, doc| {
self.edit_at(what, move |worker, doc| {
let name = ely_platform::user::named(&author)?;
annots.iter_mut().for_each(|annot| annot.author = name.clone());
worker.annotate(doc, &annots)
});
}, cx);
}
/// A press with a drawing or form tool.