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