appsmith
appsmith copied to clipboard
[Task]: Widget layer optimization when dragging and resizing
Is there an existing issue for this?
- [X] I have searched the existing issues
SubTasks
While PR #16502 optimizes widget layers for property updates, and widget selection, we still need to optimize for dragging and resizing.
Possible solution
In usePositionedContainerZIndex we use isDragging. This is used by all widgets on the canvas, and the z-index changes when you start dragging, making all widget layers of all widgets render.
We can solve this by increasing the zIndex of the widget that is being dragged, instead of reducing the z-index of all other widgets.
Discussion on slack