Skip to content

Commit 272e028

Browse files
committed
fix: reverese highglight jumping in css files in edit mode
1 parent 6ee04fb commit 272e028

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/LiveDevelopment/MultiBrowserImpl/documents/LiveDocument.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ define(function (require, exports, module) {
193193
return;
194194
}
195195
if(!_disableHighlightOnCursor){
196-
console.log("cursor activity highlight");
197196
this.updateHighlight();
198197
}
199198
};

src/LiveDevelopment/MultiBrowserImpl/protocol/LiveDevProtocol.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ define(function (require, exports, module) {
347347
// highlight as the cursor changes which jumps the live preview selection.
348348
// We should not do reverse highlight when lp highlight is going on here.
349349
const livePreviewMode = PreferencesManager.get(CONSTANTS.PREFERENCE_LIVE_PREVIEW_MODE);
350-
const editMode = (livePreviewMode === CONSTANTS.LIVE_PREVIEW_MODE);
350+
const editMode = (livePreviewMode === CONSTANTS.LIVE_EDIT_MODE);
351351
const liveDoc = LiveDevMultiBrowser.getCurrentLiveDoc();
352352
editMode && liveDoc && liveDoc.disableHighlightOnCursorActivity(true);
353353
try {

0 commit comments

Comments
 (0)