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

feat(edgeless): move selection or shapes with spacebar while dragging like other graphic tools #6219

Merged
merged 11 commits into from
Feb 21, 2024

Conversation

golok727
Copy link
Contributor

@golok727 golok727 commented Feb 17, 2024

Feature

Implemented the ability for users to adjust selection or shape positions during creation by holding the spacebar, providing a more intuitive experience reminiscent of tools like Figma.

Extras

  • Enhanced spacebar functionality to now support all tools when switching to the hand tool, previously limited to brush, eraser, and default tools.

Demo

Feature.Preview.mp4

Copy link

vercel bot commented Feb 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
blocksuite ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 21, 2024 3:18am
blocksuite-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 21, 2024 3:18am

@golok727 golok727 changed the title feat(edgeless): Move selection or shapes with spacebar while dragging like other graphic tools feat(edgeless): move selection or shapes with spacebar while dragging like other graphic tools Feb 17, 2024
@golok727 golok727 force-pushed the space-move branch 2 times, most recently from bc9babf to f0b8fc7 Compare February 17, 2024 16:18
@doouding
Copy link
Member

doouding commented Feb 18, 2024

This feature looks great to me. But the current edgeless tools API is a little cumbersome and we are likely to simplify this part soon. So a few tests would be better.

@golok727
Copy link
Contributor Author

golok727 commented Feb 19, 2024

@doouding I have added some tests PTAL.

@doouding
Copy link
Member

Hey, thank you for the continuous follow-up. I also left some comments about the code. You can take a look.

Copy link
Member

@doouding doouding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, thanks for contributing!

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

Successfully merging this pull request may close these issues.

2 participants