Skip to content

Commit

Permalink
Lowered page scroll sensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
woxblom committed Jul 9, 2019
1 parent f8696a6 commit 2264caa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ YouTube demo video<br>
}

dependencies {
compile 'com.github.woxthebox:draglistview:1.6.5'
compile 'com.github.woxthebox:draglistview:1.6.6'
}

Add this to proguard rules, otherwise animations won't work correctly
Expand Down
4 changes: 2 additions & 2 deletions library/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION_NAME=1.6.5
VERSION_CODE=52
VERSION_NAME=1.6.6
VERSION_CODE=53
GROUP=com.github.woxthebox

POM_DESCRIPTION=Drag and drop to re-order items in a list, grid or board.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ private void updateScrollPosition() {
}

boolean isPortrait = getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT;
float scrollEdge = getResources().getDisplayMetrics().widthPixels * (isPortrait ? 0.18f : 0.14f);
float scrollEdge = getResources().getDisplayMetrics().widthPixels * (isPortrait ? 0.06f : 0.14f);
if (mTouchX > getWidth() - scrollEdge && getScrollX() < mColumnLayout.getWidth()) {
mAutoScroller.startAutoScroll(AutoScroller.ScrollDirection.LEFT);
} else if (mTouchX < scrollEdge && getScrollX() > 0) {
Expand Down

0 comments on commit 2264caa

Please sign in to comment.