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

FR - drag to create a fixed width text element #8018

Closed
ryan-di opened this issue May 14, 2024 · 0 comments · Fixed by #8038
Closed

FR - drag to create a fixed width text element #8018

ryan-di opened this issue May 14, 2024 · 0 comments · Fixed by #8038
Assignees
Labels
enhancement New feature or request richtext richtext/text editing

Comments

@ryan-di
Copy link
Member

ryan-di commented May 14, 2024

When creating a new text element, we'd like to be able to drag as if we're creating a rectangle. On pointer up, the dragged width is going to be the fixed width of the new text element and text extending beyond the width will be wrapped. The fixed width can be altered on future resizes.

To make this work, we'd want/need the following

  • show the selection border for a text that's being rendered (this would give the user a good sense of the area in which texts can go into)
  • handleTextOnPointerDown should be changed to fire only on pointer up if there wasn't a "pointer down -> drag" sequence
@ryan-di ryan-di added enhancement New feature or request richtext richtext/text editing labels May 14, 2024
@ryan-di ryan-di self-assigned this May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request richtext richtext/text editing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant