Compare commits

...

2 Commits

Author SHA1 Message Date
b1e761b26f web: don't show progress bar until 400px have scrolled 2024-09-01 15:48:11 -07:00
3efe90ca21 Update release makefile 2024-09-01 15:40:19 -07:00
3 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,6 @@
.PHONEY: commit .PHONEY: release
commit: release:
bash scripts/update-crate-version.sh bash scripts/update-crate-version.sh
git push git push
all: commit all: release

View File

@ -2,4 +2,4 @@
set -e -x set -e -x
cargo-set-version set-version --bump patch cargo-set-version set-version --bump patch
VERSION="$(awk -F\" '/^version/ {print $2}' server/Cargo.toml)" VERSION="$(awk -F\" '/^version/ {print $2}' server/Cargo.toml)"
git commit */Cargo.toml -m "Bumping version to ${VERSION:?}" git commit Cargo.lock */Cargo.toml -m "Bumping version to ${VERSION:?}"

View File

@ -62,6 +62,8 @@ fn compute_scroll_ratio() -> Msg {
// the tags at the end on mobile/tablet). // the tags at the end on mobile/tablet).
let body = document().body().expect("body"); let body = document().body().expect("body");
let sh = body.scroll_height() as f64; let sh = body.scroll_height() as f64;
// HACK: don't report percent until a fixed amount of scrolling has happened
let sh = if sh < 400. { 0. } else { sh };
let window = window(); let window = window();
let ih = window let ih = window
.inner_height() .inner_height()