Skip to content

Commit

Permalink
Made Slider#snap protected.
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanSweet committed Oct 14, 2016
1 parent 9b8f20b commit 5f3b340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gdx/src/com/badlogic/gdx/scenes/scene2d/ui/Slider.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ boolean calculatePositionAndValue (float x, float y) {
}

/** Returns a snapped value. */
private float snap (float value) {
protected float snap (float value) {
if (snapValues == null) return value;
for (int i = 0; i < snapValues.length; i++) {
if (Math.abs(value - snapValues[i]) <= threshold) return snapValues[i];
Expand Down

0 comments on commit 5f3b340

Please sign in to comment.