Comments (7)
The currentPosition was -1 before the crash in DiscreteScrollLayoutManager startSmoothPendingScroll method
from discretescrollview.
Thanks for the report, unfortunately I won't be able to look into it until weekends.
from discretescrollview.
Hey no problem at all. I traced down the issue and found out it is caused by how the DiscreteScrollView is placed in the layout. I have created a sample project that can reproduce the crash. I hope it saves you some time.
https://drive.google.com/open?id=0B4VSgmZteixRX002ZDVYR1c0RnM
Thanks again for all the effort!
from discretescrollview.
Yeah, the issue exists, I've checked the project. Can't yet say why it happens.
You started getting it after upgrading to 1.3?
from discretescrollview.
It happened even before 1.3
from discretescrollview.
I found the root cause might come from DiscreteScrollLayoutManager.onScrollEnd()
Direction scrollDirection = Direction.fromDelta(scrolled);
if (Math.abs(scrolled) == scrollToChangeCurrent) {
currentPosition += scrollDirection.applyTo(1); <- it will return -1 if the recyclerview has zero items
scrolled = 0;
}
from discretescrollview.
@youfacepalm thanks a lot for the project you created, it saved me a lot of time. The issue is resolved.
from discretescrollview.
Related Issues (20)
- ScaleTransformer not transforming uniformly HOT 1
- Make an AsyncTask call in a specific slider HOT 1
- Speed On scroll
- Scroll to Specific Element HOT 2
- ConcurrentModificationException
- How to put the first item on left of screen HOT 1
- If the width of each item is different, it will still use the width of the first item as the default width. HOT 2
- i
- Disable snap to ViewHolder HOT 1
- Fatal Exception: java.lang.IllegalArgumentException
- Library artifacts are published to jcenter only, which will close in 3 months HOT 15
- While using smoothScrollToPosition() the app isn't responding HOT 3
- hello,please What is the reason? HOT 2
- highlight current item with different background color HOT 1
- The view for DiscreteScrollView it will be messed-up after the user lock his phone and unlock it multiple time. please see the attached screenshots. HOT 2
- jcenter error HOT 4
- Rtl LayoutManager HOT 2
- App.getSharedPreferences(java.lang.String, int)' on a null object reference HOT 1
- How to close an infinite loop? HOT 1
- Cannot use with Gradle8 and above HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discretescrollview.