@@ -30,14 +30,12 @@ Item {
3030 }
3131
3232 function update() {
33− var previouslyStopped = velocityAboveThreshold;
34−
3533 calc.trackedPosition = trackedValue;
3634 velocityAboveThreshold = Math.abs(calc.calculate()) > velocityThreshold;
3735
3836 if (velocityAboveThreshold) { // only start timer if we're above the threshold.
3937 velocityTimer.start();
40− } else if (previouslyStopped) { // if we have previously been stopped, then trigger the signal
38+ } else {
4139 velocityTimer.stop();
4240 }
4341 }