Sie sind nicht angemeldet.

1

Samstag, 21. Februar 2015, 22:18

Wrong scaling on android devices

Hello
I find out that in our project, if you use chrome on android devices than after first opening a pano, all plugins become twice larger.
After refreshing, everything becomes normal.
That trouble does not appear in iphones and ipads
Is there any known ways to solve that trouble?

Thanks
»arentij« hat folgende Bilder angehängt:
  • 1.jpeg
  • 2.jpeg

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »arentij« (21. Februar 2015, 23:25)


Scott Witte

Fortgeschrittener

Beiträge: 382

Wohnort: Milwaukee, WI USA

Beruf: Professional Photographer

  • Nachricht senden

2

Samstag, 21. Februar 2015, 23:24

Just a guess, but make sure loading your tour is one of the last things you do. Put the code below all the other html and javascript but still inside the body.

As a workaround you could force a resize event.

Quellcode

1
2
embedpano({swf:"files/tour.swf", xml:"files/tour.xml", target:"pano", html5:"auto", passQueryParameters:true});
window.dispatchEvent(new Event('resize'));

And if that doesn't work try delaying a bit:

Quellcode

1
2
embedpano({swf:"files/tour.swf", xml:"files/tour.xml", target:"pano", html5:"auto", passQueryParameters:true});
setTimeout(function() { window.dispatchEvent(new Event('resize')); }, 10);

All speculation but may be worth a try.

3

Sonntag, 22. Februar 2015, 20:46

Scott, none of that helped.

4

Montag, 23. Februar 2015, 10:34

Hi,

What Android Chrome version are you using?

That's a bug of an older Android Chrome versions (the Chrome browser forgets to set right viewport and devicepixelratio settings in this case), but current version shouldn't have this...

Best regards,
Klaus

5

Dienstag, 24. Februar 2015, 19:52

Version 40.0.2214.109
Android 5.0.2
thats mine, in others it's the same trouble.

6

Donnerstag, 26. Februar 2015, 17:32

What devices are that?