diff --git a/packages/gallery/src/components/gallery/proGallery/slideshowView.js b/packages/gallery/src/components/gallery/proGallery/slideshowView.js index 294c402cf..c0d5c1cf3 100644 --- a/packages/gallery/src/components/gallery/proGallery/slideshowView.js +++ b/packages/gallery/src/components/gallery/proGallery/slideshowView.js @@ -902,7 +902,8 @@ class SlideshowView extends React.Component { // nextGroup, // previousItem, // previousGroup, - toIndex: (itemIdx) => this.scrollToIndex({ itemIdx, scrollDuration: 400 }), + toIndex: (itemIdx, animationDuration = 400) => + this.scrollToIndex({ itemIdx, scrollDuration: animationDuration }), // getCurrentActiveItemIndex, // getCurrentActiveGroupIndex, assignIndexChangeCallback: (func) => {