Skip to content

Fix sound reorder crash#4389

Merged
paulkaplan merged 2 commits intoscratchfoundation:developfrom
paulkaplan:fix-sound-reord
Jan 18, 2019
Merged

Fix sound reorder crash#4389
paulkaplan merged 2 commits intoscratchfoundation:developfrom
paulkaplan:fix-sound-reord

Conversation

@paulkaplan
Copy link
Contributor

Fixes an issue where reordering sounds could crash because the drop was being picked up by the target pane. This was because I didn't correctly split the cases where the drop occurred outside the container and the case where there were no items in the list to drop onto. Now those are handled separately.

I reverted the previous fix and introduced a better one, with @picklesrus help.

/cc @kchadha because you reviewed the first version.

…-backpack-sprite"

This reverts commit 97f8eb6, reversing
changes made to 2e017f0.
We were emitting drops when getMouseOverIndex was null, which could happen either when the drop is outside the container, or there were zero boxes to check for ordering. Treat these two cases separately, and continue to not emit drops when outside the container.
@paulkaplan paulkaplan changed the title Revert incorrect backpack fix Fix sound reorder crash Jan 18, 2019
@paulkaplan paulkaplan merged commit eb87463 into scratchfoundation:develop Jan 18, 2019
@paulkaplan paulkaplan deleted the fix-sound-reord branch January 18, 2019 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant