Wilto / Dynamic-Carousel

A carousel plugin built for responsive layouts. There are many like it, but this one is mine.
matmarquis.com/carousel/
472 stars 112 forks source link

IE7 adjRounding Issues #54

Open mdance opened 12 years ago

mdance commented 12 years ago

I have a carousel with 3 slides, set to 100%.

In IE7, I am experiencing problems which is causing the second slide to not appear leaving just the background of the slider container.

After about ~12 hours, I have narrowed down the problem to the adjRounding function.

Here are the calculations through the function:

When clicking next on the first slide:

diff: 2424 i: 0 left: 0 diff: 2424 i: 1 left: 2424 diff: 2424 i: 2 left: 4848

When clicking next on the second slide:

diff: 1201 i: 0 left: 0 diff: 1201 i: 1 left: 1201 diff: 1201 i: 2 left: 2402

When clicking prev on the third slide:

diff: 11 i: 0 left: 0 diff: 11 i: 1 left: 11 diff: 11 i: 2 left: 22

When clicking prev on the second slide:

diff: 1201 i: 0 left: 0 diff: 1201 i: 1 left: 1201 diff: 1201 i: 2 left: 2402

mdance commented 12 years ago

I have a bit more information on this problem, in IE7 the parent.width() function is returning the wrong value. It is returning the total width of the ul container instead of the "visible" width if that makes any sense.

Does anyone have any ideas?