-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Open
Description
Expected Behavior
Sprite tiles should, given a second or two, display the sprite's latest costume
Actual Behavior
If you quickly undo/redo in the paint editor, the sprite selector tiles will display the old costume until you hover over them with your mouse:
This appears to be a consequence of the ThrottledPropertyHOC
: it limits a sprite tile's costume to be changed at most once every 500ms, but if you change it more often than that, it "throws away" all later changes.
Steps to Reproduce
- With the editor open, switch to the Costumes tab
- Scribble over the cat's costume with the paintbrush or otherwise make a visible change to it
- Observe the sprite tile changing
- Quickly (within half a second) undo and then redo in the paint editor
- Observe that the sprite tile now shows the original unmodified sprite
This also happens if you rapidly click the undo button in the paint editor.
Operating System and Browser
All