web: add scroll to top button and squelch some debug logging
This commit is contained in:
@@ -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.)));
|
||||
|
||||
Reference in New Issue
Block a user