web: add scroll to top button and squelch some debug logging

This commit is contained in:
2024-09-12 22:37:58 -07:00
parent d4fc2e2ef1
commit bd578191a8
2 changed files with 19 additions and 14 deletions

View File

@@ -511,13 +511,6 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg>) {
.value_of();
let r = el.get_bounding_client_rect();
info!(
"window scrolled {}x{}@{},{}",
r.width(),
r.height(),
r.x(),
r.y(),
);
let end = r.height() - ih;
let y = -r.y();
orders.send_msg(Msg::SetProgress((y / end).max(0.)));