mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
fix slider modifier function to return correct controller
onFinishChange(), onChange(), and step() were returning the NumberBoxController instead of NumberSliderController
This commit is contained in:
parent
f741e650c9
commit
66aa8fe153
@ -824,8 +824,8 @@ function augmentController(gui, li, controller) {
|
||||
const pb = box[method];
|
||||
controller[method] = box[method] = function() {
|
||||
const args = Array.prototype.slice.call(arguments);
|
||||
pc.apply(controller, args);
|
||||
return pb.apply(box, args);
|
||||
pb.apply(box, args);
|
||||
return pc.apply(controller, args);
|
||||
};
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user