Skip to content

A self-hosted media server and file management system

fix: spotlight swipe is in wrong direction

aminnausin96ef16c44f16
diff --git a/resources/js/components/explore/ExploreSpotlight.vue b/resources/js/components/explore/ExploreSpotlight.vue
index dcade6fd..34c89b95 100644
--- a/resources/js/components/explore/ExploreSpotlight.vue
+++ b/resources/js/components/explore/ExploreSpotlight.vue
@@ -71,8 +71,8 @@ const { offset, isSwiping, onPointerDown, onPointerMove, onPointerUp } = useSwip
function onSwipeOut() {
if (Math.abs(offset.value.x) < 45) return;
- leaveDirection.value = offset.value.x > 0 ? '100%' : '-100%';
- (offset.value.x > 0 ? nextFolder : previousFolder)();
+ leaveDirection.value = offset.value.x < 0 ? '-100%' : '100%';
+ (offset.value.x < 0 ? nextFolder : previousFolder)();
}
const nextFolder = () => {