Skip to content

Commit b6f3cda

Browse files
committed
Fix last frame again
1 parent 0da7533 commit b6f3cda

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/mini-editor/src/mini-editor-tween.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,11 @@ function endingPosition(
275275
} = getStepFiles(prev, next, false)
276276

277277
// getStepFiles return the intermediate files, we need to patch the ending state (2to1south)
278-
if (!inputSouthPanel && nextSouthFile) {
279-
nextNorthFile = nextSouthFile
278+
const isTwoToOneSouth =
279+
!inputSouthPanel &&
280+
inputNorthPanel.active === prev?.southPanel?.active
281+
if (isTwoToOneSouth) {
282+
nextNorthFile = nextSouthFile!
280283
}
281284

282285
return {

0 commit comments

Comments
 (0)