Skip to content

Release v1.10.2

Compare
Choose a tag to compare
@troberts-28 troberts-28 released this 30 Jul 10:28
· 9 commits to main since this release
  • The DurationScroll component repeats the list of numbers a given number of times to avoid auto-scrolling every time you hit the end of the list. Previously, this was hard-coded as 3 repetitions. Have now added props to configure the number of repititions for each picker: repeatHourNumbersNTimes, repeatMinuteNumbersNTimes and repeatSecondNumbersNTimes. Note that these have a performance trade-off: higher values mean the picker has to auto-scroll less to maintain the infinite scroll, but has to render a longer list of numbers. By default, the props are set to 6, 3 and 3, respectively, which balances that trade-off effectively. #33 #34
  • Improved the auto-scroll behaviour to avoid jumping to the next number whens scrolling slowly. #33
  • Modified the initial scroll index behaviour to ensure it starts on zero in the case where infinite scroll is disabled and the picker is set to one repetition. #34