You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is potentially a feature request for adding two new scrolling direction modes: AUTO_ASC and AUTO_DESC They are all based on if the newer text is greater or less than the current one.
For AUTO_ASC mode, ideally it would work like this:
if the original text is number of 1234 and the new one is 1243, since the value of new text is greater than the old text, it would scrolling down
Similarly for AUTO_DESC mode, it would scroll up.
Would this feature be nice to have or we already have something similar?
hey thanks for the suggestions. instead of adding two new scrolling modes, how about if i add a new preferredScrollingDirection that mirrors the delta change? e.g. if the change is positive, it'll scroll down, otherwise it'll scroll up.
@jinatonic I think currently the library is handling each column individually. Would the new preferredScrollingDirection be able to make the whole number scrolling together based on the positive/negative change?
hey sorry for the late followup, I totally forgot about this.
in your example, each digit will simply scroll to the target number directly, e.g. 1 -> 2, 2 -> 1. if you have a set preferred scrolling direction (e.g. down), then 1 -> 2, but 2 -> 3 -> 4 -> ... -> 9 -> 0 -> 1. does that make sense?
Activity
jinatonic commentedon Aug 23, 2019
hey thanks for the suggestions. instead of adding two new scrolling modes, how about if i add a new preferredScrollingDirection that mirrors the delta change? e.g. if the change is positive, it'll scroll down, otherwise it'll scroll up.
dumbfingers commentedon Aug 23, 2019
@jinatonic I think currently the library is handling each column individually. Would the new
preferredScrollingDirectionbe able to make the whole number scrolling together based on the positive/negative change?jinatonic commentedon Aug 23, 2019
yes each column scrolls individually. can you clarify on what you mean by "whole number scrolling together based on change"?
dumbfingers commentedon Aug 23, 2019
@jinatonic
🤔 I found it might be easier to go for both of us with an example
e.g.
original value = 1289
new value = 2198
then under the new
preferredScrollingDirectionhow it would scroll?jinatonic commentedon Sep 6, 2019
hey sorry for the late followup, I totally forgot about this.
in your example, each digit will simply scroll to the target number directly, e.g. 1 -> 2, 2 -> 1. if you have a set preferred scrolling direction (e.g. down), then 1 -> 2, but 2 -> 3 -> 4 -> ... -> 9 -> 0 -> 1. does that make sense?