perfect-gui 3.3.2 → 3.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "perfect-gui",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "Nice and simple GUI for JavaScript.",
5
5
  "main": "src/index.js",
6
6
  "directories": {
package/src/index.js CHANGED
@@ -155,7 +155,7 @@ export default class GUI {
155
155
  this.stylesheet.innerHTML += styles;
156
156
  }
157
157
 
158
- _addWrapper() {
158
+ _addWrapper() {
159
159
  this.wrapper = this._createElement({
160
160
  parent: this.container,
161
161
  id: 'p-gui-'+this.instanceId,
@@ -289,7 +289,7 @@ export default class GUI {
289
289
  }
290
290
 
291
291
  if (typeof callback == "function") {
292
- callback(slider_ctrl.value);
292
+ callback(parseFloat(slider_ctrl.value));
293
293
  }
294
294
  });
295
295