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:
parent
f7d5d0e79a
commit
9fa6335c48
|
@ -184,7 +184,6 @@ var setState = function (res) {
|
||||||
setDelayScale();
|
setDelayScale();
|
||||||
|
|
||||||
if (res.sequence == true) {
|
if (res.sequence == true) {
|
||||||
STATE.sequence = true;
|
|
||||||
if (mobile.ble) mobile.ble.active = true;
|
if (mobile.ble) mobile.ble.active = true;
|
||||||
seqState(true);
|
seqState(true);
|
||||||
} else {
|
} else {
|
||||||
|
@ -197,13 +196,15 @@ var seqState = function (state) {
|
||||||
if (state) {
|
if (state) {
|
||||||
if (!elem.classList.contains('focus')) {
|
if (!elem.classList.contains('focus')) {
|
||||||
elem.classList.add('focus');
|
elem.classList.add('focus');
|
||||||
elem.innerHTML = 'STOP SEQUENCE';
|
|
||||||
}
|
}
|
||||||
|
elem.innerHTML = 'STOP SEQUENCE';
|
||||||
|
STATE.sequence = true;
|
||||||
} else {
|
} else {
|
||||||
if (elem.classList.contains('focus')) {
|
if (elem.classList.contains('focus')) {
|
||||||
elem.classList.remove('focus');
|
elem.classList.remove('focus');
|
||||||
elem.innerHTML = 'START SEQUENCE';
|
|
||||||
}
|
}
|
||||||
|
elem.innerHTML = 'START SEQUENCE';
|
||||||
|
STATE.sequence = false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue