From a1ba02402e5bb8a3b8c20072541f49af48dd3385 Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Mon, 28 Oct 2024 22:30:37 -0400 Subject: Reduce SliderPanel sensitivity to improve compatibility with ItemTouchHelper. --- .../infinityforreddit/customviews/slidr/widget/SliderPanel.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/src') 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); -- cgit v1.2.3