From 0ec8e4d9b4d21f5a68a2dfacf95a845612a202a1 Mon Sep 17 00:00:00 2001 From: Sema Date: Sat, 15 Jun 2024 11:17:49 -0400 Subject: [PATCH] Float numbers --- .npmignore | 1 + javascript/JZZ.input.Kbd.js | 10 +++++----- package.json | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.npmignore b/.npmignore index f5a72c9..ba9bb26 100644 --- a/.npmignore +++ b/.npmignore @@ -3,4 +3,5 @@ minified test* coverage Gruntfile.js +eslint.config.mjs !test diff --git a/javascript/JZZ.input.Kbd.js b/javascript/JZZ.input.Kbd.js index f2ba3c0..af5cf45 100644 --- a/javascript/JZZ.input.Kbd.js +++ b/javascript/JZZ.input.Kbd.js @@ -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) { @@ -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) { diff --git a/package.json b/package.json index b7cca62..5f67b23 100644 --- a/package.json +++ b/package.json @@ -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": { @@ -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",