SJFluidSegmentedControl icon indicating copy to clipboard operation
SJFluidSegmentedControl copied to clipboard

Delegate function not being updated if swiped/scrolled to quickly.

Open xbsjason opened this issue 6 years ago • 0 comments

Hello and thanks for the great work you've done on the project. I'm facing an issue where the delegate method is not being called when the selected index is changed via a swipe. I'm monitoring via the following delegate method segmentedControl(_ segmentedControl: SJFluidSegmentedControl, didChangeFromSegmentAtIndex fromIndex: Int, toSegmentAtIndex toIndex:Int) and it appears that if the user scrolls quickly to a new segment index this is not called as the toIndex is not updated.

Is there another delegate function I should be monitoring for this or is it unexpected behavior? I really like the project here and will be using it in my app if I can resolve this.

Thanks for taking the time to read/respond.

xbsjason avatar Mar 04 '18 22:03 xbsjason