Skip to content

Commit

Permalink
Add animation duration to navigation to index (#1207)
Browse files Browse the repository at this point in the history
* add animation duration to navigate toIndex

* remove console.log

* lint
  • Loading branch information
noam-heller1 committed Apr 10, 2024
1 parent 5e115eb commit 0c2c8f7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 0c2c8f7

Please sign in to comment.