From 2264caa8a7fd12567418702f0353bc3c830fc561 Mon Sep 17 00:00:00 2001 From: Magnus Woxblom Date: Tue, 9 Jul 2019 11:34:59 +0200 Subject: [PATCH] Lowered page scroll sensitivity --- README.md | 2 +- library/gradle.properties | 4 ++-- .../src/main/java/com/woxthebox/draglistview/BoardView.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2b8836d..65a69dd 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ YouTube demo video
} 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 diff --git a/library/gradle.properties b/library/gradle.properties index c8c3ca9..5661294 100644 --- a/library/gradle.properties +++ b/library/gradle.properties @@ -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. diff --git a/library/src/main/java/com/woxthebox/draglistview/BoardView.java b/library/src/main/java/com/woxthebox/draglistview/BoardView.java index ba25907..504e0ca 100644 --- a/library/src/main/java/com/woxthebox/draglistview/BoardView.java +++ b/library/src/main/java/com/woxthebox/draglistview/BoardView.java @@ -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) {