mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-03-17 01:20:46 +08:00
Track home page scroll position
This commit is contained in:
@@ -375,6 +375,7 @@ export default {
|
|||||||
|
|
||||||
const handleScroll = (e) => {
|
const handleScroll = (e) => {
|
||||||
const el = e.target
|
const el = e.target
|
||||||
|
savedScrollTop.value = el.scrollTop
|
||||||
if (el.scrollHeight - el.scrollTop <= el.clientHeight + 50) {
|
if (el.scrollHeight - el.scrollTop <= el.clientHeight + 50) {
|
||||||
fetchContent()
|
fetchContent()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user