Mercurial > hg > webaudioevaluationtool
changeset 3070:1f92be08fadd
Try to keep a continuous touch cycle #122
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Tue, 31 Oct 2017 22:01:29 +0000 |
parents | a03408cd1fde |
children | afb1de9be046 |
files | interfaces/ape.js |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/interfaces/ape.js Tue Oct 31 21:55:34 2017 +0000 +++ b/interfaces/ape.js Tue Oct 31 22:01:29 2017 +0000 @@ -349,6 +349,7 @@ trackObj.removeEventListener("mousedown"); trackObj.removeEventListener("mouseup"); trackObj.removeEventListener("touchstart"); + trackObj.removeEventListener("touchmove"); trackObj.removeEventListener("touchend"); trackObj.removeEventListener("touchcancel"); } @@ -364,6 +365,8 @@ axisInterface.mouseup(this); metric.moved(audioEngineContext.timer.getTestTime(), this.value); console.log("Slider " + label + " on axis " + axisInterface.name + " moved to " + this.value); + } else if (e.type == "touchmove") { + axisInterface.handleEvent(e); } } this.clicked = function (e) { @@ -637,7 +640,6 @@ return ""; } sliderRail.addEventListener("mousemove", this); - sliderRail.addEventListener("touchmove", this); Object.defineProperties(this, { "sliderRail": { "value": sliderRail