diff --git a/colorslider/src/main/java/com/github/naz013/colorslider/ColorSlider.java b/colorslider/src/main/java/com/github/naz013/colorslider/ColorSlider.java index c768731..cc32564 100644 --- a/colorslider/src/main/java/com/github/naz013/colorslider/ColorSlider.java +++ b/colorslider/src/main/java/com/github/naz013/colorslider/ColorSlider.java @@ -333,7 +333,7 @@ private void calculateColors(@ColorInt int fromColor, @ColorInt int toColor, int } } - private boolean processTouch(MotionEvent event) { + public boolean processTouch(MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_DOWN) return true; else if (event.getAction() == MotionEvent.ACTION_MOVE || event.getAction() == MotionEvent.ACTION_UP) { updateView(event.getX(), event.getY());