STATE.sequence is not being reset to false when over. UI issue #20 is appearing in web app as well as iOS app, so this problem is likely occuring in intval3.core.js or replicated in all apps.

This commit is contained in:
mmcwilliams 2020-05-07 13:23:59 -04:00
parent f7d5d0e79a
commit 9fa6335c48
1 changed files with 4 additions and 3 deletions

View File

@ -184,7 +184,6 @@ var setState = function (res) {
setDelayScale();
if (res.sequence == true) {
STATE.sequence = true;
if (mobile.ble) mobile.ble.active = true;
seqState(true);
} else {
@ -197,13 +196,15 @@ var seqState = function (state) {
if (state) {
if (!elem.classList.contains('focus')) {
elem.classList.add('focus');
elem.innerHTML = 'STOP SEQUENCE';
}
elem.innerHTML = 'STOP SEQUENCE';
STATE.sequence = true;
} else {
if (elem.classList.contains('focus')) {
elem.classList.remove('focus');
elem.innerHTML = 'START SEQUENCE';
}
elem.innerHTML = 'START SEQUENCE';
STATE.sequence = false;
}
};