Fix clipboard scroll with 1 entry

This commit is contained in:
Jesse Boyd 2017-03-05 03:04:10 +11:00
parent c325f0745c
commit e7e833789a
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -44,9 +44,12 @@ public class MathMan {
};
public static final int wrap(int value, int min, int max) {
if (max <= min) {
if (max < min) {
return value;
}
if (min == max) {
return min;
}
int diff = max - min + 1;
if (value < min) {
return max - ((min - value) % diff);