Skip to content

fix: Dropping blocks above editor #945

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

Merged
merged 5 commits into from
Jul 18, 2024
Merged

Conversation

matthewlipski
Copy link
Collaborator

Even though the drop cursor still appears when the mouse cursor is beyond the editor vertically, letting go of the mouse button doesn't actually trigger a drop in the editor. This PR fixes that by restricting the mouse cursor y-coordinate to the editor's bounding box on drop.

Closes #934

Copy link

vercel bot commented Jul 17, 2024

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

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Jul 18, 2024 11:57am
blocknote-website ✅ Ready (Inspect) Visit Preview Jul 18, 2024 11:57am

Copy link
Collaborator

@YousefED YousefED left a comment

Choose a reason for hiding this comment

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

looks good (if you remove the blur handling from 944)

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

Successfully merging this pull request may close these issues.

Block drag to top of document doesn't work
2 participants