We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d00aca commit efdc117Copy full SHA for efdc117
1 file changed
src/views/MobileCompanion.svelte
@@ -295,13 +295,18 @@
295
296
const getContentContainer = () => contentContainer;
297
298
- $: if (activeView === "detail") {
+ const resetScrollToTop = () => {
299
void tick().then(() => {
300
const container = getContentContainer();
301
if (container) {
302
container.scrollTop = 0;
303
}
304
});
305
+ };
306
+
307
+ $: if (activeView === "detail") {
308
+ selectedGameId;
309
+ resetScrollToTop();
310
311
312
const isObject = (value: unknown): value is Record<string, unknown> =>
0 commit comments