DaveKin / dat-gui

Automatically exported from code.google.com/p/dat-gui
0 stars 0 forks source link

Changing presets appears to trigger component change functions incorrectly #60

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a GUI with at least one slider and at least one checkbox along and 
enable preset feature
2. Edit presets to have same value for checkbox for both presets
3. Edit presets to have different value for slider in each preset
4. Select different presets

What is the expected output? What do you see instead?
I may be misunderstanding presets but I expected the onChange/onFinishChange 
functions for checkboxes not to trigger as you switch presets because the 
values are the same. I would expect the onChange/onFinishChange function for 
slider to to trigger because it does change between presets.

What version of the product are you using? On what operating system?
dat-gui version 0.5, Chrome 43, OS X 10.10

Please provide any additional information below.
Codepen with an example of what I see here: 
http://codepen.io/callum/pen/xGEyPY?editors=101

Original issue reported on code.google.com by callum on 22 May 2015 at 4:28