veader / V8HorizontalPickerView

Horizontal UIPickerView Control for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't send didSelectElementAtIndex delegate callback when index is equal to previous index

rounak opened this issue · comments

Can the picker not send delegate callbacks if the previous selected value is the same as the current selected value. This happens when I scroll the picker very lightly, and it returns to its original position.

Yes, it is a problem, I´m trying to solve this atm

Not sure we want to remove this behavior from the picker. You can pretty easily keep track of the last selected index in your delegate and choose to do nothing when you get the callback.