Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

112
Vistas
Loading data when scrolling down to the bottom of the page works well android devices, but does not work apple devices

I am using pure javascript to loading data when scrolling over and over to the bottom of the page. My code works well in android phones. But it does not work in apple devices. And i do not know where is problem exactly. Here is my code:

let self = this
        this.scrollArea = document.getElementById("scrollable-product-area");
        
        $('#scrollable-product-area').on('scroll', function() {
            if(self.scrollArea.scrollTop + self.scrollArea.clientHeight  >= self.scrollArea.scrollHeight - 0.5){
                if(self.secilenKategori.length == 0 && self.secilenMarka.length == 0 && self.search === ""){
                    self.$store.commit("changePostPage",(self.$store.getters.getPostpage + 50));
                    self.$store.commit("changeScrollPosDashboard", self.scrollArea.scrollTop);
                    self.getUrunList();
                }
                else{
                    if(self.$store.getters.getUrunFilterNumber >= 50) {
                        self.$store.commit("changePostPage",(self.$store.getters.getPostpage + 50));
                        self.$store.commit("changeScrollPosDashboard", self.scrollArea.scrollTop);
                        self.urunFilter();
                    }                  
                }
            }
        })

This code inside mounted method. I am sending limits of data and page number to function for loading data.

almost 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda