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

Chore: Don't let draft lines receive mouseEnter/Leave events, or create invalid overlays #4306

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

franknoirot
Copy link
Collaborator

@franknoirot franknoirot commented Oct 25, 2024

Currently the console gets spammed with errors when creating draft lines, making for noisy development. This was because draft segments were receiving the normal segment onMouseEnter and onMouseLeave listeners, and were being provided constraint overlays, even though they aren't yet in the AST. This marks those segments as draft so they can be excluded from receiving the listeners or the overlay components.

No new tests because this removes console.log only behavior. All the existing tests passing should verify no behavior has changed.

Demo

Screenshare.-.2024-10-25.11_49_26.AM-compressed.mp4

Copy link

vercel bot commented Oct 25, 2024

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

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Oct 25, 2024 3:55pm

Copy link

qa-wolf bot commented Oct 25, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@franknoirot franknoirot merged commit 7e31678 into main Oct 25, 2024
26 checks passed
@franknoirot franknoirot deleted the franknoirot/adhoc/draft-lines-no-mouseEnter branch October 25, 2024 19:34
@lf94 lf94 mentioned this pull request Oct 25, 2024
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.

3 participants