You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Has anyone used image-focus with owl-carousel? Is it working correctly for you?
After a lot of debugging, I'm pretty certain that the debounceApplyShift function is being called as expected, every time the carousel changes positions. However, the position being calculated by applyShift is completely incorrect. Is it possible that the inline styles being applied by owl-carousel are causing a problem with image-focus's calculations.
<divclass="owl-carousel"><divclass="owl-stage-outer"><!-- notice the following inline styles. The width overflows the entire viewport. The -400px argument to translate3d changes as owl changes positions --><divclass="owl-stage" style="translate3d(-400px, 0px; 0px); width: 1600px"><divclass="owl-item" style="width: 370px; margin-right: 30px;"><!-- my content which contains an image-focus --></div><divclass="owl-item active" style="width: 370px; margin-right: 30px;"><!-- my content which contains an image-focus --></div><divclass="owl-item active" style="width: 370px; margin-right: 30px;"><!-- my content which contains an image-focus --></div><divclass="owl-item active" style="width: 370px; margin-right: 30px;"><!-- my content which contains an image-focus --></div></div></div></div>
I'll try to put together a jsfiddle/plnkr in some time. But, please let me know if it's a known fact that the styles applied to the outer container interfere with image-focus's position calculations.
The text was updated successfully, but these errors were encountered:
Has anyone used image-focus with owl-carousel? Is it working correctly for you?
After a lot of debugging, I'm pretty certain that the
debounceApplyShift
function is being called as expected, every time the carousel changes positions. However, the position being calculated byapplyShift
is completely incorrect. Is it possible that the inline styles being applied by owl-carousel are causing a problem with image-focus's calculations.I'll try to put together a jsfiddle/plnkr in some time. But, please let me know if it's a known fact that the styles applied to the outer container interfere with image-focus's position calculations.
The text was updated successfully, but these errors were encountered: