We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efdc117 commit 87caba6Copy full SHA for 87caba6
1 file changed
src/views/MobileCompanion.svelte
@@ -293,20 +293,14 @@
293
requestThumbnailsForGames(visibleThumbnailGames);
294
}
295
296
- const getContentContainer = () => contentContainer;
297
-
298
- const resetScrollToTop = () => {
+ $: if (activeView === "detail") {
+ selectedGameId;
299
void tick().then(() => {
300
- const container = getContentContainer();
+ const container = document.querySelector(".content");
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