From d219c83b1899dd51808fe9cfb116c4c0a59def78 Mon Sep 17 00:00:00 2001 From: Sandra Date: Sat, 15 Jun 2019 16:18:42 -0400 Subject: [PATCH] limitNodeSearch minimum to 2 --- src/Gallery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gallery.js b/src/Gallery.js index da230e3..796f026 100644 --- a/src/Gallery.js +++ b/src/Gallery.js @@ -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,