mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-28 14:58:09 +09:00
fix: 🐛 swipe left on home wraps back
This commit is contained in:
parent
a89e30841f
commit
d80450e8a5
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "misskey",
|
||||
"version": "12.118.1-calc.11.1",
|
||||
"version": "12.118.1-calc.11.2",
|
||||
"codename": "aqua",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -278,15 +278,14 @@ if (isMobile.value) {
|
||||
|
||||
if (Math.abs(xDiff) > Math.abs(yDiff)) {
|
||||
if (xDiff > 0) {
|
||||
next =
|
||||
timelines[
|
||||
(timelines.indexOf(src) - 1) % timelines.length
|
||||
];
|
||||
if (src === 'home') {
|
||||
next = 'global'
|
||||
}
|
||||
else {
|
||||
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];
|
||||
}
|
||||
fader.classList.remove('fade');
|
||||
fader.classList.add('fade');
|
||||
|
Loading…
Reference in New Issue
Block a user