mirror of https://github.com/espruino/BangleApps
widget utils swipeOn now updates appRect to match where the widgets are - see https://github.com/espruino/BangleApps/pull/2306
parent
cf3e574b8f
commit
6868ca321e
|
@ -72,6 +72,8 @@ exports.swipeOn = function() {
|
|||
let offset = -24; // where on the screen are we? -24=hidden, 0=full visible
|
||||
|
||||
function queueDraw() {
|
||||
Bangle.appRect.y = offset+24;
|
||||
Bangle.appRect.h = 1 + Bangle.appRect.y2 - Bangle.appRect.y;
|
||||
if (offset>-24) Bangle.setLCDOverlay(og, 0, offset);
|
||||
else Bangle.setLCDOverlay();
|
||||
}
|
||||
|
@ -133,4 +135,3 @@ exports.swipeOn = function() {
|
|||
};
|
||||
Bangle.on("swipe", exports.swipeHandler);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue