Improve back gesture support & add inbox roombar
This commit is contained in:
parent
38f8c147ae
commit
0bade1e5c5
10 changed files with 50 additions and 16 deletions
|
|
@ -896,11 +896,7 @@ document.addEventListener("click", (e) => {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
backCounter = 0;
|
||||
});
|
||||
var backCounter = 0;
|
||||
window.addEventListener("popstate", (e) => {
|
||||
popstate();
|
||||
});
|
||||
|
|
@ -913,15 +909,14 @@ if (App) {
|
|||
}
|
||||
function popstate()
|
||||
{
|
||||
mobileNavBack();
|
||||
backCounter++;
|
||||
if (backCounter >= 4)
|
||||
if (!mainScreen.classList.contains('mobile-content') && !mainScreen.classList.contains('mobile-details'))
|
||||
{
|
||||
history.back();
|
||||
if (App) {
|
||||
App.minimizeApp();
|
||||
}
|
||||
}
|
||||
mobileNavBack();
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -930,6 +925,8 @@ function gotoSideProfilePopup() {
|
|||
}
|
||||
function gotoInbox() {
|
||||
setActiveSidebarIndicator(sidebarInboxIndicator);
|
||||
switchRoomsBar("title.inbox", inboxRoomBar);
|
||||
gotoInvites();
|
||||
}
|
||||
function gotoCreateSpace() {
|
||||
fixedContextMenu.classList.remove("show");
|
||||
|
|
@ -937,7 +934,7 @@ function gotoCreateSpace() {
|
|||
}
|
||||
function gotoJoinSpace() {
|
||||
fixedContextMenu.classList.remove("show");
|
||||
switchRoomContent("title.join.space", joinSpaceScreen, true);
|
||||
switchRoomContent("title.join.space", joinSpaceScreen, false);
|
||||
}
|
||||
function gotoHome() {
|
||||
setActiveSidebarIndicator(sidebarHomeIndicator);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue