widget utils swipeOn now updates appRect to match where the widgets are - see https://github.com/espruino/BangleApps/pull/2306

pull/2308/head
Gordon Williams 2022-11-23 10:46:52 +00:00
parent cf3e574b8f
commit 6868ca321e
1 changed files with 12 additions and 11 deletions

View File

@ -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);
};