Releases: juanma-dev/taino-leptos-dnd
v0.4.1 — Dioxus scroll-listener leak fix
Fixed
-
Dioxus auto-scroll velocity decay across many drags. The window
scrollevent listener and the RAF generation counter were installed insideprovide_dnd_contextwithout a hook guard, so Dioxus's re-execution of the host component on every signal change attached a freshforget()-ed listener per render. After ~20 drops the page was running 20+ scroll listeners per event, each callingremeasure_all+update_over, producing a linear slowdown of the auto-scroll loop (mouse-wheel scrolling, which fires few events, stayed fast). Wrapping the listener install inuse_hookmakes it run exactly once per component instance. -
Dioxus drop-preview flicker near viewport edges.
bounding_rectnow subtracts the element's computedtransform: translate(...)before returning. Without this, mid-draggetBoundingClientRectcaptures the drop-preview transform and feeds it back into the registry, producing a flicker loop. Required enabling theCssStyleDeclarationfeature onweb-sys.