-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
refactor: Remove block and workspace drag surfaces #6758
Conversation
@gonfunko Are you cool waiting to merge this until after the release next week? or do you want it to go in? Personally I would rather have longer to test it if possible. |
Yes, absolutely was not expecting this to land in the imminent release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM! One nit, and then we need to decide whether this is a breaking change or not.
)" This reverts commit 332c0fd.
The basics
npm run format
andnpm run lint
The details
Resolves
#6160, #781, #5759
Proposed Changes
This PR removes block and workspace drag surfaces in favor of directly translating the relevant SVGs.
Reason for Changes
Performance for both panning the workspace and dragging blocks, particularly when large block stacks are involved, is substantially improved on Chrome, essentially unchanged on Firefox (where it was already excellent) ands slightly reduced on Safari, yet still much better than it was on Chrome before this change.
In addition to generally improved performance, this also removes a good bit of code, improving future maintainability.
Test Coverage
Verified that tests are passing and manually tested in Chrome, Firefox and Safari.