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

Ability to click between blocks / set container cursor by click #7

Open
johannesmutter opened this issue Oct 16, 2024 · 1 comment
Open

Comments

@johannesmutter
Copy link
Collaborator

UX issue

In order to add a new block before/ after another block one has to:

  1. Click a non-text element
  2. Press arrow down
    → The container cursor appears

or in case of clicking a text element:

  1. Click the text element
  2. Press ESC
  3. Press arrow down

This will be especially difficult on mobile where there's no keyboard available.

Proposed solution

Step1

  • We add a clickable surface between blocks
  • This surface is rendered inside "svedit-overlays"
@michael
Copy link
Owner

michael commented Oct 24, 2024

Thought about this more when testing on Android. I think it's acceptable to go from a regular block selection to a collapsed cursor using an arrow key. Since there's no way to customize the soft keyboard and add arrow keys, we could render floating "move up/down" buttons and possibly even "expand up/down" those tools would be always visible and also allow you to switch from a text selection to the nearest container cursor.

On desktop we can add thin click surfaces as you suggested, though a first version could be without. It's like bonus stuff for improved UX we could add later.

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