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

132
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
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