Pārlūkot izejas kodu

FIX: mobile inifinite scroll (needs 1px offset)

master
valere pirms 6 mēnešiem
vecāks
revīzija
a1e267a3b3
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      composables/useScrollEnd.ts

+ 1
- 1
composables/useScrollEnd.ts Parādīt failu

@@ -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()


Notiek ielāde…
Atcelt
Saglabāt