Skip to content

Commit 01bcabc

Browse files
committed
fix(Animated): bug in interpolation node
The range index selector function was not ensuring that a valid range was selected.
1 parent 009513f commit 01bcabc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReactWindows/ReactNative.Shared/Animated/InterpolationAnimatedNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private static double Interpolate(
134134
private static int FindRangeIndex(double value, double[] ranges)
135135
{
136136
var index = 1;
137-
for (; index < ranges.Length; ++index)
137+
for (; index < ranges.Length - 1; index++)
138138
{
139139
if (ranges[index] >= value)
140140
{

0 commit comments

Comments
 (0)