Skip to content

Commit

Permalink
Float numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Jun 15, 2024
1 parent d869621 commit 0ec8e4d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ minified
test*
coverage
Gruntfile.js
eslint.config.mjs
!test
10 changes: 5 additions & 5 deletions javascript/JZZ.input.Kbd.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
if (!JZZ) return;
if (!JZZ.input) JZZ.input = {};

var _version = '1.3.2';
var _version = '1.3.3';
function _name(name, deflt) { return name ? name : deflt; }

function _copy(obj) {
Expand Down Expand Up @@ -466,13 +466,13 @@
this.playing = {}; this.touches = {};
if (!this.current.ul) {
this.current.ul = _unit(this.current.wl, this.current.bl);
this.current.wl = parseInt(this.current.wl);
this.current.bl = parseInt(this.current.bl);
this.current.wl = parseFloat(this.current.wl);
this.current.bl = parseFloat(this.current.bl);
}
if (!this.current.uw) {
this.current.uw = _unit(this.current.ww, this.current.bw);
this.current.ww = parseInt(this.current.ww);
this.current.bw = parseInt(this.current.bw);
this.current.ww = parseFloat(this.current.ww);
this.current.bw = parseFloat(this.current.bw);
}

if (this.current.keys) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jzz-input-kbd",
"version": "1.3.2",
"version": "1.3.3",
"description": "Virtual piano controls for your MIDI projects",
"main": "javascript/JZZ.input.Kbd.js",
"scripts": {
Expand All @@ -22,7 +22,7 @@
"jzz": "^1.8.4"
},
"devDependencies": {
"eslint": "^9.4.0",
"eslint": "^9.5.0",
"grunt": "^1.6.1",
"grunt-contrib-jshint": "^3.2.0",
"grunt-contrib-uglify": "^5.2.2",
Expand Down

0 comments on commit 0ec8e4d

Please sign in to comment.