mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit.git
synced 2026-02-18 12:35:44 +00:00
Reduce SliderPanel sensitivity to improve compatibility with ItemTouchHelper.
This commit is contained in:
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user