wallet: reload view when scroll changes

This commit is contained in:
rsx
2024-08-03 10:56:11 +02:00
parent f0e071bee9
commit f3df028b03

View File

@@ -295,7 +295,10 @@ impl ChatView {
let mut on_modify = OnModify::new(ex, node_name, node_id, me.clone());
//on_modify.when_change(scroll.prop(), Self::scrollview);
async fn reload_view(self_: Arc<ChatView>) {
self_.scrollview(self_.scroll.get()).await;
}
on_modify.when_change(scroll.prop(), reload_view);
async fn redraw(self_: Arc<ChatView>) {
self_.redraw().await;