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

Problem with events #5

Open
artem-tarasenko opened this issue Dec 16, 2020 · 0 comments
Open

Problem with events #5

artem-tarasenko opened this issue Dec 16, 2020 · 0 comments

Comments

@artem-tarasenko
Copy link

Hey there, I picked up this gallery to use it in my small app and come across an error in a specific situation.

<ReactGallery withControls>
    { galleryItems.map((item) => {
    return <ReactGallery.Slide {...item} key={ item.href } className="gallery-item" />;
    })}
</ReactGallery>

Here is how I called a gallery.
Everything worked just fine unless I created a gallery with just a few items and so they did not fill the whole container. As a result by clicking on empty space event is being triggered but with an error.

2020-12-16_122227

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