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

Drag And Drop Features #257

Open
PrashantUnity opened this issue Jul 29, 2024 · 4 comments
Open

Drag And Drop Features #257

PrashantUnity opened this issue Jul 29, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@PrashantUnity
Copy link

Hi @martinstoeckli Thankyou for this Application, Yesterday I Discovered this on FDroid and love this so much one its easy to use and best part is its open source.

One this i miss is Dragging features. Could You please implement Freature of Dragging for rearranging.

Given that the project uses MudBlazor, which offers built-in dragging features as demonstrated in their Dropzone component, implementing this feature could be a valuable addition to the application.

@PrashantUnity PrashantUnity added the enhancement New feature or request label Jul 29, 2024
@martinstoeckli
Copy link
Owner

martinstoeckli commented Jul 29, 2024

Hello @PrashantUnity thanks a lot for your suggestion.

Actually I just replaced the Drag&Drop feature with the new ordering toolbar, but other users also asked to get the feature back. Before version 8.0, I used a JavaScript library to do the sorting, but on mobile devices it did not work reliable (it was laggy and sometimes hanged). The component you described looks interesting, I would have to do some testing though. And another step I surely want to do first, is updating to MudBlazor 4 (I actually already started, but then time was running out).

@martinstoeckli
Copy link
Owner

Maybe the problem could be also solved, by adding additional buttons to move a whole row of notes, when the application is shown on a wide screen? What do you think?

@PrashantUnity
Copy link
Author

PrashantUnity commented Jul 29, 2024

were you using same Library https://github.com/SortableJS/Sortable
i found while i was watching Burke Learns Blazor - Drag and Drop and DOM events!
https://www.youtube.com/live/OLCnfudwNSc?si=gD0jTqYxGBJLLpdb

from your source code i am guessing we need to do some changes in NoteRepositoryPage.razor line 156

Testing can be pain 😭😭😭

@martinstoeckli
Copy link
Owner

martinstoeckli commented Jul 29, 2024

Yes that was the JS library and yes this is the place where the visible notes are enumerated 👍and yes testing is really difficult due to the sheer amout of possible environments. Usually I test with Android 7, 10, 13 and now 14 before a release is published, and it is more common than not, that there are some hickups on one of those devices. 😥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants