diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2024-10-29 02:30:37 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2024-10-29 02:30:37 +0000 |
commit | a1ba02402e5bb8a3b8c20072541f49af48dd3385 (patch) | |
tree | 41dbf41300fa0edecf416d9f99f54c579450465a | |
parent | 169ebe7ac176ab6372303c3f0f5cd5cd251403d2 (diff) | |
download | infinity-for-reddit-a1ba02402e5bb8a3b8c20072541f49af48dd3385.tar infinity-for-reddit-a1ba02402e5bb8a3b8c20072541f49af48dd3385.tar.gz infinity-for-reddit-a1ba02402e5bb8a3b8c20072541f49af48dd3385.tar.bz2 infinity-for-reddit-a1ba02402e5bb8a3b8c20072541f49af48dd3385.tar.lz infinity-for-reddit-a1ba02402e5bb8a3b8c20072541f49af48dd3385.tar.xz infinity-for-reddit-a1ba02402e5bb8a3b8c20072541f49af48dd3385.tar.zst infinity-for-reddit-a1ba02402e5bb8a3b8c20072541f49af48dd3385.zip |
Reduce SliderPanel sensitivity to improve compatibility with ItemTouchHelper.
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/customviews/slidr/widget/SliderPanel.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/customviews/slidr/widget/SliderPanel.java b/app/src/main/java/ml/docilealligator/infinityforreddit/customviews/slidr/widget/SliderPanel.java index e4cb842b..07be1546 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/customviews/slidr/widget/SliderPanel.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/customviews/slidr/widget/SliderPanel.java @@ -91,7 +91,6 @@ public class SliderPanel extends FrameLayout { return true; } - @Override public void computeScroll() { super.computeScroll(); @@ -698,7 +697,7 @@ public class SliderPanel extends FrameLayout { edgePosition = ViewDragHelper.EDGE_LEFT; } - dragHelper = ViewDragHelper.create(this, config.getSensitivity(), callback); + dragHelper = ViewDragHelper.create(this, 0.1f, callback); dragHelper.setMinVelocity(minVel); dragHelper.setEdgeTrackingEnabled(edgePosition); |