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
I'm also having trouble combining the autoWidth and center options, but it seems to be an implementation issue rather than a bug in the library. To verify this, I went to the autoWidth-non-loop demo and ran the following commands in the JS console:
// Destroy the current slider instance.sliders['autoWidth-non-loop'].destroy();// Initialize an identical slider with the center option added.sliders['autoWidth-non-loop']=tns({"autoWidth": true,"loop": false,"mouseDrag": true,"container": "#autoWidth-non-loop","swipeAngle": false,"speed": 400,"center": true});
This works in the demo page, so I can only conclude that something in my own HTML/CSS code must be breaking it. If I find out what, I'll let you know.
Can I use autoWidth: true with center: true ?
Will it work?
The text was updated successfully, but these errors were encountered: