Explorar el Código

FIX: mobile inifinite scroll (needs 1px offset)

master
valere hace 6 meses
padre
commit
a1e267a3b3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      composables/useScrollEnd.ts

+ 1
- 1
composables/useScrollEnd.ts Ver fichero

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


Cargando…
Cancelar
Guardar