Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

117
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda