Skip to content

Commit

Permalink
Added touchstart event for older iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Dec 20, 2019
1 parent 89d31dc commit 0d41186
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -62,7 +62,7 @@ by running `npm remove midi-test --save-dev`.
##### CDN

<script src="https://cdn.jsdelivr.net/npm/jzz"></script> // the latest version, or
<script src="https://cdn.jsdelivr.net/npm/jzz@0.9.7"></script> // any particular version
<script src="https://cdn.jsdelivr.net/npm/jzz@0.9.8"></script> // any particular version
//...

##### CommonJS (Browserify and Node.js command line applications)
Expand Down
4 changes: 3 additions & 1 deletion javascript/JZZ.js
Expand Up @@ -13,7 +13,7 @@
})(this, function() {

var _scope = typeof window === 'undefined' ? global : window;
var _version = '0.9.7';
var _version = '0.9.8';
var i, j, k, m, n;

var _time = Date.now || function () { return new Date().getTime(); };
Expand Down Expand Up @@ -2218,11 +2218,13 @@
osc.start(0.1); osc.stop(0.11);
}
else {
document.removeEventListener('touchstart', _activateAudioContext);
document.removeEventListener('touchend', _activateAudioContext);
document.removeEventListener('mousedown', _activateAudioContext);
document.removeEventListener('keydown', _activateAudioContext);
}
};
document.addEventListener('touchstart', _activateAudioContext);
document.addEventListener('touchend', _activateAudioContext);
document.addEventListener('mousedown', _activateAudioContext);
document.addEventListener('keydown', _activateAudioContext);
Expand Down
2 changes: 1 addition & 1 deletion minified/JZZ.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "jzz",
"version": "0.9.7",
"version": "0.9.8",
"description": "MIDI library for Node.js and web-browsers",
"main": "javascript/JZZ.js",
"scripts": {
Expand All @@ -21,8 +21,8 @@
"jazz-midi": "^1.7.1"
},
"devDependencies": {
"coveralls": "^3.0.7",
"eslint": "^6.6.0",
"coveralls": "^3.0.9",
"eslint": "^6.7.2",
"grunt": "^1.0.4",
"grunt-contrib-jshint": "^2.1.0",
"grunt-contrib-uglify": "^4.0.1",
Expand Down

0 comments on commit 0d41186

Please sign in to comment.