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

fix(page): dragStart for bookmark / embed / image block #5979

Merged
merged 2 commits into from
Jan 14, 2024

Conversation

AyushAgrawal-A2
Copy link
Contributor

bug:

BlockSuite.Playground.-.Google.Chrome.2024-01-13.13-06-45.mp4

Copy link

vercel bot commented Jan 13, 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 Jan 13, 2024 5:51pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
blocksuite-docs ⬜️ Ignored (Inspect) Visit Preview Jan 13, 2024 5:51pm

@AyushAgrawal-A2 AyushAgrawal-A2 changed the title fix(page): dragStart for bookmark/embed/image block fix(page): dragStart for bookmark / embed / image block Jan 13, 2024

const canDrag =
blockComponent.contains(element) ||
!!element?.closest('affine-drag-handle-widget');
Copy link
Member

Choose a reason for hiding this comment

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

AFFINE_DRAG_HANDLE_WIDGET will be better

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Flrande Done, thanks for the review

@doodlewind doodlewind merged commit b97880e into toeverything:master Jan 14, 2024
19 checks passed
@AyushAgrawal-A2 AyushAgrawal-A2 deleted the ayush/fix-dragStart branch January 14, 2024 04:16
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.

None yet

3 participants