Consider Infinity step as 1

I'd check if Math.min(attrs.steps, data.num_steps>>0) != 0 instead of doing the == with Infinity of use "Infinity" directly:

```
 Math.abs(step) === Infinity ?...
```