# HG changeset patch # User Nicholas Jillings # Date 1509487673 0 # Node ID afb1de9be0464073999e29d6a207cbbc3e43006a # Parent 1f92be08fadd3726b5a734f9dc885177265ee756 #122 Better catch-all for touchmove/end/cancel diff -r 1f92be08fadd -r afb1de9be046 interfaces/ape.js --- a/interfaces/ape.js Tue Oct 31 22:01:29 2017 +0000 +++ b/interfaces/ape.js Tue Oct 31 22:07:53 2017 +0000 @@ -332,6 +332,8 @@ trackObj.addEventListener("mousedown", this); trackObj.addEventListener("mouseup", this); trackObj.addEventListener("touchstart", this); + trackObj.addEventListener("touchend", this); + trackObj.addEventListener("touchcancel", this); trackObj.classList.remove("track-slider-disabled"); labelHolder.textContent = label; } @@ -366,7 +368,7 @@ 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); + //axisInterface.handleEvent(e); } } this.clicked = function (e) { @@ -640,6 +642,7 @@ return ""; } sliderRail.addEventListener("mousemove", this); + sliderRail.addEventListener("touchmove", this); Object.defineProperties(this, { "sliderRail": { "value": sliderRail