leecade / leecade/react-native-swiper

scrollBy scroll to wrong position

Open
#686 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
10.5k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

Which OS ?

It happens on Android and ios

Version 1.

Which versions are you using:

  • react-native-swiper v1.5.10
  • react-native v0.48.0
Expected behaviour

scroll to correct position

Actual behaviour

scroll to wrong position

How to reproduce it>

When I use scrollBy this function, it's a little bit different than I expected. I expect it will jump to the specified location, but it didn't. I used a set of buttons to control the rolling position of the plug-in called swiper , but when I first used, it is normal to jump, but the second time in the beginning, it is called the scrollToIndex out of range: 16 vs 10 mistakes, then a set of buttons of mine also are unable to click , in other words, the bug called scrollBy causes my button click failed, could you tell me how to solve this situation.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported scrollBy sequence in react-native-swiper v1.5.10 with React Native v0.48.0 on Android or iOS, using buttons to change positions twice. Trace the scrollBy and scrollToIndex path and compare the requested position with the reported out-of-range error. Done means repeated button presses reach the specified position without the error or disabled controls.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.