From 8446ab932635cf1a96c180aa43aa3694d52504dd Mon Sep 17 00:00:00 2001 From: Chris Beer <cabeer@stanford.edu> Date: Thu, 2 Jul 2020 15:09:59 -0700 Subject: [PATCH] Try the smart align mode for the thumbnail view --- src/components/ThumbnailNavigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ThumbnailNavigation.js b/src/components/ThumbnailNavigation.js index 48accae8e..9eb9c7615 100644 --- a/src/components/ThumbnailNavigation.js +++ b/src/components/ThumbnailNavigation.js @@ -38,7 +38,7 @@ export class ThumbnailNavigation extends Component { if (prevProps.canvasIndex !== canvasIndex) { let index = canvasIndex; if (view === 'book') index = Math.ceil(index / 2); - this.gridRef.current.scrollToItem(index, 'center'); + this.gridRef.current.scrollToItem(index, 'smart'); } } -- GitLab