mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
fix: 🐛 swipe bug
This commit is contained in:
parent
6c4e53db10
commit
56d7613b30
@ -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
Block a user