callstack / callstack/react-native-slider

Updating step to achieve an uneven step ratio

オープン
#477 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
question
主要言語
TypeScript
スター
1.4k
フォーク
295
平均マージ
5分
マージ済み PR(30日)
1

説明

Hello! I am currently working on an app where I'd like to set an specific distance. At distances longer than 1000m it doesn't really make sense to have it set on steps of 100m anymore, so then it would be better with steps of 500m, while on distances shorter than 1000m it would be nice to have the specificity of 100m steps.

Currently we are doing this by updating the step value based on the current value of the slider. However, this seems to sometime fail, and sudden changes to the value seem to reset the slider to it's starting value (500m).

I am posing this as a question since I have no idea of this is an bug or (more likely) that our implementation is borky. Is there a better way to implement an uneven stepping of the slider?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。