Skip to content

Bug with two 50 % slides when containScroll = true #30

Closed
@gerhard-lechner

Description

Hi!

First of all, let me say that I really like embla-carousel. Thank you for sharing your awesome work!!

There's one little bug I discovered when I have two slides with width: 50% and containScroll is set to true. It doesn't appear if I have only one slide with width: 100% or three slides with width: 33.33%.

Here's a demonstration of what I'm talking about: https://codesandbox.io/s/embla-carousel-loop-true-xgg95

It's actually easy to fix by setting the width to 49.99 % but as this is only a workaround, I wanted to report the issue.

Once again, thanks for your efforts!

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomersresolvedThis issue is resolved

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions