Skip to content

Commit

Permalink
add eventListener
Browse files Browse the repository at this point in the history
  • Loading branch information
noam-heller1 committed Nov 29, 2023
1 parent 6660cf1 commit 125059b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ class SlideshowView extends React.Component {
scrollToThumbnail(itemIdx, scrollDuration) {
//not to confuse with this.props.actions.scrollToItem. this is used to replace it only for thumbnail items

this.props.actions.eventsListener(GALLERY_CONSTS.events.THUMBNAIL_CLICKED, this.props);
const activeItemFirstIdx = this.findFirstIdx(this.state.activeIndex);
const firstTargetItemIdx = this.findFirstIdx(itemIdx);
const distance = firstTargetItemIdx - activeItemFirstIdx;
Expand Down

0 comments on commit 125059b

Please sign in to comment.