Skip to content

Commit ca843d9

Browse files
author
thyttan
committed
messagegui: fix select handler logic for messagesscroller
1 parent a8c90b1 commit ca843d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/messagegui/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,16 +337,16 @@ function showMessagesScroller(msg) {
337337
if (scrollIdx>shownScrollIdxLast) {shownScrollIdxLast = scrollIdx;}
338338
},
339339
select : function(scrollIdx, touch) {
340-
WU.show();
341340
for (let i=firstTitleLinePerMsg.length-1; i>=0 ; i--) {
342341
if (scrollIdx>=firstTitleLinePerMsg[i]) {
343342
if (!touch || touch.type===0) {
343+
WU.show();
344344
showMessageRouter(MESSAGES[i], true, "overview");
345+
updateReadMessages();
345346
}
346347
break;
347348
}
348349
}
349-
updateReadMessages();
350350
}
351351
});
352352

0 commit comments

Comments
 (0)