-
Notifications
You must be signed in to change notification settings - Fork 249
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
UI Sanding #878
UI Sanding #878
Conversation
I'm still going to work on this a bit – but just saving this here. |
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.
Looks good, feel free to merge it if the one question is intentional
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.
Actually, found a visual bug from the animation
Electron.mp4
@@ -138,6 +138,16 @@ const TreeNode = observer( | |||
node.data.isVisible = !node.data.isVisible; | |||
} | |||
|
|||
function hasComponentAncestor(node: NodeApi<LayerNode>): boolean { |
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.
This is a very expensive operation. With a large enough tree, the app will grind to a halt.
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.
Fixed! Good thing too because I added some extra performance fix thanks to this.
Description
Improvements to...
What is the purpose of this pull request?