Skip to content

Commit

Permalink
Fixed issue neild001#67, drag to min/max positions
Browse files Browse the repository at this point in the history
  • Loading branch information
mudar committed Dec 14, 2017
1 parent 83ecbbd commit a0212bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SeekArc_library/src/com/triggertrap/seekarc/SeekArc.java
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,9 @@ private double getTouchDegrees(float xPos, float yPos) {
private int getProgressForAngle(double angle) {
int touchProgress = (int) Math.round(valuePerDegree() * angle);

touchProgress = (touchProgress < 0) ? INVALID_PROGRESS_VALUE
touchProgress = (touchProgress < 0) ? 0
: touchProgress;
touchProgress = (touchProgress > mMax) ? INVALID_PROGRESS_VALUE
touchProgress = (touchProgress > mMax) ? mMax
: touchProgress;
return touchProgress;
}
Expand Down

0 comments on commit a0212bd

Please sign in to comment.