fix: 🐛 swipe left on home wraps back
This commit is contained in:
parent
eafc3260c9
commit
f89f81b4c0
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"version": "12.118.1-calc.11.1",
|
"version": "12.118.1-calc.11.2",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -278,15 +278,14 @@ if (isMobile.value) {
|
||||||
|
|
||||||
if (Math.abs(xDiff) > Math.abs(yDiff)) {
|
if (Math.abs(xDiff) > Math.abs(yDiff)) {
|
||||||
if (xDiff > 0) {
|
if (xDiff > 0) {
|
||||||
next =
|
if (src === 'home') {
|
||||||
timelines[
|
next = 'global'
|
||||||
(timelines.indexOf(src) - 1) % timelines.length
|
}
|
||||||
];
|
else {
|
||||||
|
next = timelines[(timelines.indexOf(src) - 1) % timelines.length];
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
next =
|
next = timelines[(timelines.indexOf(src) + 1) % timelines.length];
|
||||||
timelines[
|
|
||||||
(timelines.indexOf(src) + 1) % timelines.length
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
fader.classList.remove('fade');
|
fader.classList.remove('fade');
|
||||||
fader.classList.add('fade');
|
fader.classList.add('fade');
|
||||||
|
|
Loading…
Reference in New Issue