adobe-photoshop / spaces-design

Adobe Photoshop Design Space
http://adobe-photoshop.github.io/
Other
848 stars 81 forks source link

Bug fix for dropping multiple files onto canvas #3793

Closed shaoshing closed 8 years ago

shaoshing commented 8 years ago

Fix for issue #3750

We are receiving one placeEvent with information of the last new layer when dropping multiple files , which causes the layers panel to add only one new layer. This PR fix the issue by fetching all layer IDs of the current document and then compare with the previous document model to detect all new layer IDs.

shaoshing commented 8 years ago

Hi @iwehrman I've addressed your comment by make it more clear when resetting layers for an existed layer, which happens when user expands a LLSO that contains one layer and the layer is an embedded SO (more details about this scenario https://github.com/adobe-photoshop/spaces-design/issues/3145#issuecomment-151627443). Back to you for another review.

iwehrman commented 8 years ago

Looks better, and the fix works for me!