Skip to content

Commit 8ae6e67

Browse files
author
thyttan
committed
messagegui: remove back fn reliance on select fn
... in E.showScroller
1 parent ad59ca7 commit 8ae6e67

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

apps/messagegui/app.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,7 @@ function showMessagesScroller(msg) {
362362
print(process.memory().free);
363363
updateReadMessages();
364364
delete titleLines, allLines;
365-
if (touch && touch.type.back) {
366-
returnToMain();
367-
} else if (!touch || touch.type===0) {
365+
if (!touch || touch.type===0) {
368366
setTimeout(()=>{
369367
showMessageSettings(MSG_SELECTED)
370368
},0);
@@ -379,7 +377,7 @@ function showMessagesScroller(msg) {
379377
back: function () {
380378
if (!persist) { return load(); }
381379
Bangle.removeListener("touch", touchHandler);
382-
Bangle.emit("touch", 1, { x: Math.floor(APP_RECT.x2 / 2), y: Math.floor(APP_RECT.y2 / 2), type: { back: true } });
380+
returnToMain();
383381
}
384382
});
385383

0 commit comments

Comments
 (0)