Skip to content

Commit

Permalink
Reduce SliderPanel sensitivity to improve compatibility with ItemTouc…
Browse files Browse the repository at this point in the history
…hHelper.
  • Loading branch information
Docile-Alligator committed Oct 29, 2024
1 parent 169ebe7 commit a1ba024
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ public boolean onTouchEvent(MotionEvent event) {
return true;
}


@Override
public void computeScroll() {
super.computeScroll();
Expand Down Expand Up @@ -698,7 +697,7 @@ private void init(){
edgePosition = ViewDragHelper.EDGE_LEFT;
}

dragHelper = ViewDragHelper.create(this, config.getSensitivity(), callback);
dragHelper = ViewDragHelper.create(this, 0.1f, callback);
dragHelper.setMinVelocity(minVel);
dragHelper.setEdgeTrackingEnabled(edgePosition);

Expand Down

0 comments on commit a1ba024

Please sign in to comment.