v0.10.4 - remove scroll back to focus when load posts

This commit is contained in:
defaultkavy 2024-10-19 14:14:55 +08:00
parent 1ea53cfafd
commit 5eb5ef289d
Signed by: defaultkavy
GPG Key ID: DFBB22C4E69D7826
4 changed files with 6 additions and 6 deletions

File diff suppressed because one or more lines are too long

2
dist/index.html vendored
View File

@ -16,7 +16,7 @@
gtag('config', 'G-59HBGP98WR');
</script>
<script type="module" crossorigin src="/assets/index-CQM-nw_y.js"></script>
<script type="module" crossorigin src="/assets/index-C9jgFl23.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BgVVzy-z.css">
</head>
<body>

View File

@ -2,7 +2,7 @@
"name": "danbooru-viewer",
"module": "index.ts",
"type": "module",
"version": "0.10.3",
"version": "0.10.4",
"scripts": {
"dev": "bun x vite",
"build": "bun x vite build",

View File

@ -34,9 +34,9 @@ export class $PostGrid extends $Layout<$PostGridEventMap> {
}
})
this.on('resize', () => this.resize())
this.on('afterRender', () => {
this.$focus.currentLayer?.focus(this.$focus.currentLayer.currentFocus);
})
// this.on('afterRender', () => {
// this.$focus.currentLayer?.focus(this.$focus.currentLayer.currentFocus);
// })
this.events.fire('startLoad');
this.loader();
this.$focus.layer(100).loop(false).scrollThreshold($.rem(2) + 60);