Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: add vertical swipes. #67

Open
dvbit opened this issue Dec 23, 2023 · 4 comments
Open

Feature request: add vertical swipes. #67

dvbit opened this issue Dec 23, 2023 · 4 comments

Comments

@dvbit
Copy link

dvbit commented Dec 23, 2023

Not an issue . Request for new feature.
Adopt hammer.js and support also vertical swipes.
adding configuration for cards (as in swipe card) and a destination card for each swipe direction (S,E,W,N).
In this way a truly navigable ui could be created: swiping from one card to the other

Thanks

@zanna-37
Copy link
Owner

zanna-37 commented Jan 8, 2024

We probably don't need external libraries to support vertical swipes, however, having a per-card swipe is probably a niche use and quite long to integrate.
Pull requests are welcome but I don't have spare time to code this.

@dvbit
Copy link
Author

dvbit commented Jan 10, 2024

Thanks for the feedback.
Indeed even if not a programmer I read the code and understood you handle swipes without any library support and the vswipe is simply not handled.
I might try to contribute.
To start Have to figure out how to "code" "goto card" as in the current implementation this comes naturally from the page dashboard/structure itself.

@zanna-37
Copy link
Owner

Ok, but let's discuss the implementation before doing a pull request so you don't waste time.

@dvbit
Copy link
Author

dvbit commented Jan 10, 2024

I was thinking about it and I think the most simple way is to have the following config:

Tabnumber1:
- u: tabnumberup
- d: tabnumberdown
- l: tabnumberleft
- r: tabnumberright

Tabnumber2:

  • u: tabnumberup
    - d: tabnumberdown

If an entry does not exist there is no navigation
So for example

1:

  • u: 2
  • d: 3
    2:
  • d: 1
  • l: 4
  • r: 5
    3:
  • u: 1
    4:
  • u: 2

5:

  • u: 2

So in this case if user starts on tab 1, up will take to tab2 , down to 3. In tab 2 down will lead back to tab 1 and so forth.

Use case is :
Remove tab and strip and have grid layout card on each tab and single page application like gui.

So I would start at a root level and navigate down to drill in detail up to go back to main level etc...
Hope it is clear

I found another card (tab redirect card) that contains the code one could use to jump to a tab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants