diff --git a/src/image-viewer.component.tsx b/src/image-viewer.component.tsx index 848eb7b1..b65b02f8 100644 --- a/src/image-viewer.component.tsx +++ b/src/image-viewer.component.tsx @@ -311,7 +311,7 @@ export default class ImageViewer extends React.Component { }).start(); const nextIndex = (this.state.currentShowIndex || 0) - 1; - + this.loadImage(nextIndex); this.setState( { currentShowIndex: nextIndex @@ -345,7 +345,7 @@ export default class ImageViewer extends React.Component { }).start(); const nextIndex = (this.state.currentShowIndex || 0) + 1; - + this.loadImage(nextIndex); this.setState( { currentShowIndex: nextIndex