regniraj / dat-gui

Automatically exported from code.google.com/p/dat-gui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

step() has no effect on a "number" controller with min and max set

GoogleCodeExporter opened this issue · comments

Create a "number" controller like so:

var controller = gui.add(myObject, 'speed', 0, 100, 5);

I would expect the textbox in controller UI to increase by steps of 5.
Possibly, I'd also expect the slider granularity to be 5 as well.

What I'm seeing though is that the step isn't used at all.

I'm using Chrome on Windows 7 with dat.gui downloaded on the 21 dec. 2014.


Original issue reported on code.google.com by jbiton...@gmail.com on 21 Dec 2014 at 2:38