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

131
Visualizações
window.screen.width do not work on ios devices?

I have sphere animation on my site, for desktop, tablet and mobile I m using different sizes of sphere. Here you can see conditions of every type of device:

desktop:
var screen_size = window.screen.width;
if(screen_size < 1025){
    false;
}else{
    sphere animation code;
}
Tablet:
var screen_size = window.screen.width;
if(screen_size >= 1025  || screen_size  < 668){
    false;
}else{
    sphere animation code;
}
Mobile:
var screen_size = window.screen.width;
if((screen_size > 667)){
    false;
}else{
    sphere animation code;
}

If I use one script separately its - works, other operation system - its works. I think suppose main problem in "window.screen.width".

Here you an see my site with full code: thesevenwang

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Thank all for replies, problem was not in ("window.screen.width" not work on IOS) or conditions.

Problem was in 3 spheres with same code, after I deleted all repeated code it start work. May be some double variables cause an error implementation.

And window.screen.width now work well on IOS, so my main problem statement was wrong.

Anyway thank you all, you comments helped me think under the problem more clearly.

about 4 years ago · Juan Pablo Isaza Relatório
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