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

Accidental swipe-deletes #31

Closed
bo0tzz opened this issue Sep 7, 2023 · 3 comments
Closed

Accidental swipe-deletes #31

bo0tzz opened this issue Sep 7, 2023 · 3 comments

Comments

@bo0tzz
Copy link

bo0tzz commented Sep 7, 2023

I use android's gesture navigation, which includes swiping from the edge of the screen to navigate backwards. Occasionally, I miss and accidentally delete a list item. Luckily there is an undo button, but this is still inconvenient. I think there are a few possible approaches here:

  1. Adding an option to the app that disables swipe-deletes altogether.
  2. Having swipe-delete require an extra confirmation.
  3. Adding a 'deadzone' to the ends of the swipe-delete area, so that it doesn't trigger when you swipe near the edge of the screen.
  4. Using the Gesture Exclusion API - I don't actually know if/how this would work, but it seems like it's relevant here?
  5. Just not missing ;)
@cachapa
Copy link
Owner

cachapa commented Sep 7, 2023

This is a general UX problem with Android (and iOS, to a certain extent).
All of the proposed solutions are kind of not ideal. Maybe 3 could work, but it's probably not so easy to implement.

I do like the swipe-to-delete gesture though, and would prefer to keep it.

I've been thinking of removing the undo bar that pops up and replacing it with a "trash" page which would show all deleted items from the last N days.
To me that solves the common issue of the bottom items being obscured by the popup, and the problem of only having a few seconds to click the undo button.

@bo0tzz
Copy link
Author

bo0tzz commented Sep 7, 2023

I like that!

@bo0tzz
Copy link
Author

bo0tzz commented Sep 14, 2023

Resolved with 359ca2f

Love how that came out, thank you!

@bo0tzz bo0tzz closed this as completed Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants