Skip to content

Conversation

@nehashafi18
Copy link

Fixing autopaste function issue after undoing and repasting

Description

Fix the autopaste function after undoing by getting the copy_info from UI state and passing it in all undo & redo stack data.

Related Issue

#946
Autopaste should put the strand immediately to the right of the second strand, as happened the first time that we only had two strands. In other words we need Undo to undo not only the change to which strands are in the design, but also undo the change in internal Autopaste data that happens after each time you press Ctrl+Shift+V.

Motivation and Context

This fixes a bug where the index of the auto pasted strand is not updated after the undo action.

How Has This Been Tested?

Tested in the Chrome browser on my computer

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.

2 participants