Skip to content

Commit d2454b2

Browse files
committed
fix: prevent hot corner from coming up when live preview panel is resized
1 parent 71c0fd5 commit d2454b2

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,16 @@ function RemoteFunctions(config = {}) {
12891289
"dismissUIAndCleanupState": dismissUIAndCleanupState,
12901290
"escapeKeyPressInEditor": _handleEscapeKeyPress,
12911291
"getMode": function() { return config.mode; },
1292-
"suppressDOMEditDismissal": suppressDOMEditDismissal
1292+
"suppressDOMEditDismissal": suppressDOMEditDismissal,
1293+
"setHotCornerHidden": function(hidden) {
1294+
if (SHARED_STATE._hotCorner && SHARED_STATE._hotCorner.hotCorner) {
1295+
if (hidden) {
1296+
SHARED_STATE._hotCorner.hotCorner.classList.add('hc-hidden');
1297+
} else {
1298+
SHARED_STATE._hotCorner.hotCorner.classList.remove('hc-hidden');
1299+
}
1300+
}
1301+
}
12931302
};
12941303

12951304
// the below code comment is replaced by added scripts for extensibility

0 commit comments

Comments
 (0)