0
2
next: closing someone's stories returns to their profile, not Home
Only what this pull adds. It is built on The next grain.social and grain-ios, drawn by HUD.
vendor/hud/web/shell/src/Pager.svelte+5−0
| @@ -128,7 +128,12 @@ | ||
}); | ||
} | ||
| ||
/** Whether it is closing: what asks again meanwhile (its last page running out, Escape, ✕, a drag down) closes it no more than once. */ | ||
let closing = false; | ||
| ||
function close() { | ||
if (closing) return; | ||
closing = true; | ||
dy = height; | ||
settle(onclose); | ||
} | ||
vendor/hud/web/shell/src/Shell.svelte+9−1
| @@ -369,17 +369,25 @@ | ||
return true; | ||
} | ||
| ||
/** Back a step: the browser's, where the entry before is the screen under this one. */ | ||
/** The history entry a step back was last taken from: a second asked for before the first lands (a pager's ✕ as its last story runs out, Escape and ✕) is the same step, never one more. */ | ||
let left: unknown = undefined; | ||
| ||
/** Back a step, once from each entry: the browser's, where the entry before is the screen under this one; else up a level of its own. */ | ||
function back() { | ||
const here = navigation.here; | ||
if (here !== undefined && here === left) return; | ||
left = here; | ||
if (isHere(here) && here.up) history.back(); | ||
else stacks[current]?.up(); | ||
} | ||
| ||
// A history entry gone back or forward to: its tab and stack as they | ||
// were. The app's own entries come here too, where the stack is already. | ||
// Any entry come to may be stepped back from again, even one stepped | ||
// back from before (back, forward, back). | ||
$effect(() => { | ||
const here = navigation.here; | ||
left = undefined; | ||
if (!isHere(here) || here.tab >= app.tabs.length) return; | ||
const said = JSON.stringify(here); | ||
if (said === made) return; | ||
vendor/hud/COMMIT+1−1
| @@ -1 +1 @@ | ||
b136da9e01e7f2f12217b9f4a878e81c08de04f5 | ||
18ee0da34f0bdccab54481ba05827a0f475e6f5d | ||