Skip to content

Commit

Permalink
limitNodeSearch minimum to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
neptunian committed Jun 15, 2019
1 parent 49e3274 commit d219c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function Gallery({ photos, onClick, direction, margin, limitNodeSearch, targetRo
}
// set how many neighboring nodes the graph will visit
if (limitNodeSearch === undefined) {
limitNodeSearch = 1;
limitNodeSearch = 2;
if (containerWidth >= 450) {
limitNodeSearch = findIdealNodeSearch({
containerWidth,
Expand Down

0 comments on commit d219c83

Please sign in to comment.