Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect calculation of the slide width when using properties 'fixedWidth' and 'gutter'. #812

Open
daryavolakh opened this issue Jan 11, 2023 · 0 comments

Comments

@daryavolakh
Copy link

Issue description: The values of these properties are concatenated. For example, with a 'width: 400' and 'gutter: 96' in the inspector I see the width of the slider equals to 40096px not the 400px.

Screenshot from 2023-01-11 15-52-45
)

Demo link/slider setting:
let benefitsSlider = tns({
container: '.benefits__slider',
speed: 300,
items: 1,
slideBy: 1,
fixedWidth: '400',
gutter: '96',
mouseDrag: true,
swipeAngle: false,
controls: true,
controlsContainer: '.benefits__slider-nav',
prevButton: '.benefits__slider-previous',
nextButton: '.benefits__slider-next',
nav: false,
});

Tiny-slider version: 2.9.4
Browser name && version: Google Chrome 107.0.5304.110
OS name && version: Ubuntu 20.04.2 LTS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant