mirror of https://github.com/espruino/BangleApps
widget_utils: use correct variable to clear interval
parent
d646e04b42
commit
cde7efad99
|
@ -109,7 +109,7 @@ exports.swipeOn = function(autohide) {
|
||||||
};
|
};
|
||||||
|
|
||||||
function anim(dir, callback) {
|
function anim(dir, callback) {
|
||||||
if (exports.animInterval) clearInterval(exports.interval);
|
if (exports.animInterval) clearInterval(exports.animInterval);
|
||||||
exports.animInterval = setInterval(function() {
|
exports.animInterval = setInterval(function() {
|
||||||
offset += dir;
|
offset += dir;
|
||||||
let stop = false;
|
let stop = false;
|
||||||
|
@ -146,4 +146,4 @@ exports.swipeOn = function(autohide) {
|
||||||
};
|
};
|
||||||
Bangle.on("swipe", exports.swipeHandler);
|
Bangle.on("swipe", exports.swipeHandler);
|
||||||
Bangle.drawWidgets();
|
Bangle.drawWidgets();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue