fix: 🐛 swipe left on home wraps back

This commit is contained in:
ThatOneCalculator 2022-08-19 23:42:15 -07:00
parent a89e30841f
commit d80450e8a5
2 changed files with 8 additions and 9 deletions

View File

@ -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",

View File

@ -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');