Mercurial > hg > webaudioevaluationtool
changeset 3068:edeeff75ed19
WIP for #122
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Tue, 31 Oct 2017 21:49:26 +0000 |
parents | ffd7042c64b2 |
children | a03408cd1fde |
files | interfaces/ape.js |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/interfaces/ape.js Tue Oct 31 21:46:17 2017 +0000 +++ b/interfaces/ape.js Tue Oct 31 21:49:26 2017 +0000 @@ -349,6 +349,7 @@ trackObj.removeEventListener("mousedown"); trackObj.removeEventListener("mouseup"); trackObj.removeEventListener("touchstart"); + trackObj.removeEventListener("touchend"); } var timing = undefined; this.handleEvent = function (e) { @@ -358,7 +359,7 @@ } if (e.type == "mousedown" || e.type == "touchstart") { axisInterface.mousedown(this); - } else if (e.type == "mouseup") { + } else if (e.type == "mouseup" || e.type == "touchend") { axisInterface.mouseup(this); metric.moved(audioEngineContext.timer.getTestTime(), this.value); console.log("Slider " + label + " on axis " + axisInterface.name + " moved to " + this.value);