Skip to content

Commit

Permalink
feat(pointcloud): PageJump support skipBeforePageTurning
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerwin-L committed Sep 27, 2022
1 parent 5fc83ec commit 95de366
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ const ToolFooter: React.FC<IProps> = (props: IProps) => {

const toPageNumber = (page: string) => {
const imgIndex = ~~page - 1;
if (skipBeforePageTurning) {
skipBeforePageTurning(() => dispatch(PageJump(imgIndex)));
return;
}
dispatch(PageJump(imgIndex));
};

Expand Down

0 comments on commit 95de366

Please sign in to comment.