diff interfaces/ape.js @ 3064:a504a17dcf9f

Fix some lingering APE.js issues with movement trackers
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Tue, 31 Oct 2017 16:44:53 +0000
parents 6b95437ae672
children ffd7042c64b2
line wrap: on
line diff
--- a/interfaces/ape.js	Tue Oct 31 16:21:58 2017 +0000
+++ b/interfaces/ape.js	Tue Oct 31 16:44:53 2017 +0000
@@ -360,6 +360,8 @@
                     axisInterface.mousedown(this);
                 } else if (e.type == "mouseup") {
                     axisInterface.mouseup(this);
+                    metric.moved(audioEngineContext.timer.getTestTime(), this.value);
+                    console.log("Slider " + label + " on axis " + axisInterface.name + " moved to " + this.value);
                 }
             }
             this.clicked = function (e) {
@@ -574,14 +576,12 @@
                 move = Math.max(50, move);
                 move = Math.min(w, move);
                 UI.selected.value = (move / w);
-                UI.selected.metric.moved(time, UI.selected.value);
             } else if (event.type == "touchmove") {
                 var move = event.originalEvent.targetTouches[0].clientX - 6;
                 var w = $(event.currentTarget).width();
                 move = Math.max(50, move);
                 move = Math.min(w, move);
                 UI.selected.value = (move / w);
-                UI.selected.metric.moved(time, UI.selected.value);
             }
         }
         this.checkAllMoved = function () {