Merge pull request #24 from merwaaan/master

Fix HSlider widget not initializing correctly
This commit is contained in:
Javi Agenjo
2018-03-26 10:10:07 -07:00
committed by GitHub

View File

@@ -252,7 +252,7 @@ var LiteGraph = global.LiteGraph;
WidgetHSlider.title = "H.Slider";
WidgetHSlider.desc = "Linear slider controller";
WidgetHSlider.prototype.onInit = function()
WidgetHSlider.prototype.onAdded = function()
{
this.value = 0.5;
this.imgfg = this.loadImage("imgs/slider_fg.png");