fix: 🐛 swipe bug
This commit is contained in:
parent
bca91426db
commit
1886193b8e
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "misskey",
|
||||
"version": "12.118.1-calc.11.5",
|
||||
"version": "12.118.1-calc.11.6",
|
||||
"codename": "aqua",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -138,15 +138,15 @@ if (isMobile.value) {
|
|||
let tabs = ['all', 'unread', 'mentions', 'directNotes'];
|
||||
|
||||
if (Math.abs(xDiff) > Math.abs(yDiff)) {
|
||||
if (xDiff > 0) {
|
||||
if (xDiff < 0) {
|
||||
if (tab === 'all') {
|
||||
next = 'directNotes';
|
||||
}
|
||||
else {
|
||||
next = tabs[(tabs.indexOf(tab) + 1) % tabs.length];
|
||||
next = tabs[(tabs.indexOf(tab) - 1) % tabs.length];
|
||||
}
|
||||
} else {
|
||||
next = tabs[(tabs.indexOf(tab) - 1) % tabs.length];
|
||||
next = tabs[(tabs.indexOf(tab) + 1) % tabs.length];
|
||||
}
|
||||
tab = next;
|
||||
}
|
||||
|
|
|
@ -275,15 +275,15 @@ if (isMobile.value) {
|
|||
}
|
||||
|
||||
if (Math.abs(xDiff) > Math.abs(yDiff)) {
|
||||
if (xDiff > 0) {
|
||||
if (xDiff < 0) {
|
||||
if (src === 'home') {
|
||||
next = 'global'
|
||||
next = 'global';
|
||||
}
|
||||
else {
|
||||
next = timelines[(timelines.indexOf(src) + 1) % timelines.length];
|
||||
next = timelines[(timelines.indexOf(src) - 1) % timelines.length];
|
||||
}
|
||||
} else {
|
||||
next = timelines[(timelines.indexOf(src) - 1) % timelines.length];
|
||||
next = timelines[(timelines.indexOf(src) + 1) % timelines.length];
|
||||
}
|
||||
saveSrc(next);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue