Skip to content

Commit

Permalink
fix: fix progress indicator container scroll issue
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyingtao committed Jun 21, 2023
1 parent 04cfd7e commit c525bfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Inchworm/Source/ProcessIndicatorContainer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,9 @@ extension ProcessIndicatorContainer: UIScrollViewDelegate {
targetIndex = kMaxIndex
}

targetContentOffset.pointee.x = CGFloat(targetIndex) * pageWidth;

if targetIndex != activeIndicatorIndex {
targetContentOffset.pointee.x = CGFloat(targetIndex) * pageWidth;
setActiveIndicatorIndex(targetIndex)
getActiveIndicator()?.handleTap()
deactiveInactiveIndicators()
Expand Down

0 comments on commit c525bfd

Please sign in to comment.