ganlanyuan / tiny-slider

Vanilla javascript slider for all purposes.
MIT License
5.26k stars 785 forks source link

edgePadding on vertical axis not working? #833

Open Hangloozz opened 1 year ago

Hangloozz commented 1 year ago

I can't get the edgePadding working on a slider with vertical axis, if I add an edgePadding of 50 it adds whitespace on the bottom only, but slides are cut off on the height as if the slider was configurated without edgePadding. Is it possible to use edgePadding on vertical axis at all?

Settings I use:

tns({
            container: '.poster-slider',
            axis: 'vertical',
            items: 1,
            slideBy: 'page',
            swipeAngle: false,
            autoplay: false,
            speed: 400,
            navContainer: '#custom-controls-year',
            center: false,
            loop: false,
            controls: false,
            gutter: 0,
            edgePadding: 50,
            startIndex: 0,
            autoHeight: false,
        });

TS version 2 (2.9.4) FF-117.0, Chrome 116.0 MacOS Ventura 13.5.1