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",
|
"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
Block a user