ソースを参照

FIX: mobile inifinite scroll (needs 1px offset)

master
valere 6ヶ月前
コミット
a1e267a3b3
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      composables/useScrollEnd.ts

+ 1
- 1
composables/useScrollEnd.ts ファイルの表示

@@ -4,7 +4,7 @@ export function useScrollEnd() {

const handleScroll = () => {
const scrollPosition = window.innerHeight + window.scrollY
const pageHeight = document.documentElement.offsetHeight
const pageHeight = document.documentElement.offsetHeight - 1 // 1 pixel offset to fix mobile browser

if (scrollPosition >= pageHeight && typeof callback === 'function') {
callback()


読み込み中…
キャンセル
保存