fix: 🐛 swipe left on home wraps back
This commit is contained in:
parent
eafc3260c9
commit
f89f81b4c0
|
@ -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