mirror of
https://github.com/usenocturne/nocturne-ui.git
synced 2026-04-25 07:45:52 +03:00
[PR #79] [MERGED] Feature: add swiping gestures to Now Playing #112
Labels
No labels
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nocturne-ui#112
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/usenocturne/nocturne-ui/pull/79
Author: @angelolz
Created: 1/16/2025
Status: ✅ Merged
Merged: 1/18/2025
Merged by: @brandonsaldan
Base:
main← Head:feature/add-swiping-gesture📝 Commits (6)
a29cc00added swiping to go previous/next song2f8116cmoved to useNowPlayingc4115cfremoved importc981deeadded swipe up gesturebf32b78forgot to remove comment701e22dadded settings📊 Changes
3 files changed (+178 additions, -96 deletions)
View changed files
📝
src/components/settings/Settings.jsx(+18 -0)📝
src/hooks/useNowPlaying.js(+58 -0)📝
src/pages/now-playing.jsx(+102 -96)📄 Description
This feature will add swiping gestures to the Now Playing page.
There's a swipe threshold so that tiny, tiny swipes don't trigger these gestures. For the left/right swipes, the swipe needs to be at least 30px wide. For the up swipe, the swipe needs to be at least 18px wide.
Here's a small demo video:
https://github.com/user-attachments/assets/0fdc0e09-f8e1-4bb7-a610-5aa6233d59f4
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.