Closed baaygun closed 8 years ago
One question, but looks good generally. Back to @volfied.
You know, I wonder if we could filter out non-artboard group layers in resetBounds
as an optimization since we don't track bounds for plain groups anyway.
(Work in progress on that here: https://github.com/adobe-photoshop/spaces-design/compare/iwehrman/reset-fewer-bounds)
@iwehrman Answered your question, I think the change is safe.
:+1: :+1: :+1:
Addresses #3505
We set autoExpandDisabled during our action play, but as soon as we finish and re-set it, PS handles canvas shift, and sends us the event, which we debounce. Because we debounce it, if we were to call swap again, we would be trying to swap layers at a wrong location, and cause the bug. So now as part of swap, we call resetBounds on all selected layers. This doesn't add that much to action time, so didn't seem like a bad performance hit.