roundabout icon indicating copy to clipboard operation
roundabout copied to clipboard

Positionning problem on the first load

Open Spheerys opened this issue 12 years ago • 3 comments

Hi,

I have a positionning problem under Chromium with roundabout.

Here the demo : http://gravillas.spheerys.fr/

With Firefox/Opera, that works correctly, but with Chromium/Chrome, on the first load (or with pressing F5 on the home page), the roundabout is shifting (have a look here : http://img.spheerys.fr/images/gravillas.png) If you change page and come back to the "Nos Vins" page (home page), the roundabout is set correctly.

Here the js code :

$('#roundabout').roundabout({ autoplay: true, autoplayDuration: 4000, childSelector: '.vin', minOpacity: 0.1, minScale: 1, maxScale: 0.7, focusBearing: 1, autoplayPauseOnHover: true });

Any idea where the problem comes from ?

Spheerys avatar Nov 05 '12 12:11 Spheerys

Precision : le problem occurs each time I load the home page for the first time (tested on IE9, FF/Win, Chromium/Linux...)

I really love this script but my customer just want a working website :(

Spheerys avatar Nov 05 '12 16:11 Spheerys

My customer wants the site online quickly, so I'm looking for another casourel... but I'm still interested by an issue !!

Spheerys avatar Nov 09 '12 13:11 Spheerys

Similar to #80, this may be an issue with cache/un-cached images causing the Roundabout calculations to be thrown off. See my comment in #80 or if you're in a real hurry consider a setTimeout for initialization. That's not ideal but it might get you up and running.

bradgreens avatar Nov 14 '12 20:11 bradgreens