From d49980291c646f707b3acfd46b49efdd1ae886c8 Mon Sep 17 00:00:00 2001 From: sir-indy <53864146+sir-indy@users.noreply.github.com> Date: Mon, 2 May 2022 11:14:35 +0100 Subject: [PATCH] correct onTouch if timerRunning --- apps/smpltmr/app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/smpltmr/app.js b/apps/smpltmr/app.js index de02319fd..2904fd6a1 100644 --- a/apps/smpltmr/app.js +++ b/apps/smpltmr/app.js @@ -45,7 +45,7 @@ const imgPause = atob("GBiBAP+B//+B//+B//+B//+B//+B//+B//+B//+B//+B//+B//+B//+B/ const imgPlay = atob("GBiBAIAAAOAAAPgAAP4AAP+AAP/gAP/4AP/+AP//gP//4P//+P///v///v//+P//4P//gP/+AP/4AP/gAP+AAP4AAPgAAOAAAIAAAA=="); function onDrag(event) { - if (timerRunning()) { + if (!timerRunning()) { Bangle.buzz(40, 0.3); var diff = -Math.round(event.dy/5); if (event.x < timePickerLayout.hours.w) { @@ -84,7 +84,9 @@ function onButton() { if (timerRunning()) { timerStop(); } else { - timerRun(); + if (seconds > 0) { + timerRun(); + } } }