Skip to content

Commit

Permalink
Merge pull request #696 from focux/fix-snap-to-item
Browse files Browse the repository at this point in the history
Fix: Snapping to the first item not working
  • Loading branch information
Benoît Delmaire authored May 26, 2020
2 parents 308648f + d9966c9 commit 45f5be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/carousel/Carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ export default class Carousel extends Component {

const offset = this._getItemScrollOffset(index);

if (!offset) {
if (offset === undefined) {
return;
}

Expand Down

0 comments on commit 45f5be0

Please sign in to comment.