Add folder tree

This commit is contained in:
2025-06-19 23:09:41 +02:00
parent 4e9eacc7b0
commit b39419888b
5 changed files with 291 additions and 17 deletions

View File

@ -289,11 +289,11 @@ impl Handwriting {
_ => Some(next),
}
})
.cloned()
.filter(|event| {
// FIXME: pinenote: PointerMoved are duplicated after the MouseMoved events
cfg!(not(feature = "pinenote")) || !matches!(event, Event::PointerMoved(..))
})
.cloned()
.collect::<Vec<_>>()
});
@ -459,6 +459,8 @@ impl Handwriting {
mesh_context: MeshContext,
ui: &mut Ui,
) {
// TODO: don't tesselate and rasterize on the GUI thread
self.last_mesh_ctx = Some(mesh_context);
self.refresh_texture = false;
@ -646,6 +648,7 @@ impl FromStr for Handwriting {
.wrap_err("Failed to decode painting data from base64")?;
// HACK: first iteration of disk format did not have version header
//let mut bytes = bytes;
//bytes.insert(0, 0);
//bytes.insert(0, 1);