fix(tmtv): fix toggle one up weird behaviours (#4473)

This commit is contained in:
Alireza authored and GitHub committed 2024-11-07 00:20:30 -05:00
1 parent 3f7ae76113
commit aa2b649444
15 files changed
+58 -63

No files matched your search

+5
View File
@@ -371,6 +371,11 @@ const commandsModule = ({
findOrCreateViewport,
isHangingProtocolLayout: true,
});
// Reset crosshairs after restoring the layout
setTimeout(() => {
commandsManager.runCommand('resetCrosshairs');
}, 0);
} else {
// We are not in one-up, so toggle to one up.