Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lags when dragging slowly on first item #182

Open
bartwell opened this issue Nov 27, 2020 · 0 comments
Open

Lags when dragging slowly on first item #182

bartwell opened this issue Nov 27, 2020 · 0 comments

Comments

@bartwell
Copy link

Hello!
Thank you for this useful library. It works well but have an issue. When I am trying to scroll it slowly from begging it gets some lags:

lag

Here is a code:

<com.shawnlin.numberpicker.NumberPicker
		android:id="@+id/picker"
        android:layout_width="@dimen/dimen_232dp"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal"
        app:np_dividerColor="@color/gray"
        app:np_selectedTextSize="34sp"
        app:np_textColor="@color/black"
        app:np_textSize="@dimen/34sp" />
picker.minValue = 1
picker.maxValue = 64
picker.wrapSelectorWheel = false
picker.value = 1
picker.setOnValueChangedListener { _, _, newValue ->
      handlePickerValue(newValue)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant