devadvance / circularseekbar

Custom circular SeekBar (Circle, Semi-circle, and Ellipse) View/Widget for Android
Apache License 2.0
464 stars 134 forks source link

Sometimes progress value is jumped from 0 to 100. #34

Open iraj-wisilica opened 7 years ago

iraj-wisilica commented 7 years ago

The current thumb is at value of 0. When changing the seek bar speedy, the value jumps to 100. I suspect the following code block.

else if (lockAtEnd && lockEnabled) { mProgress = mMax; // Suspected here. recalculateAll(); invalidate(); if (mOnCircularSeekBarChangeListener != null) { mOnCircularSeekBarChangeListener.onProgressChanged(this, mProgress, true); } }