Skip to content

Commit

Permalink
[#66717] only scroll editor on preview click if it is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Trzcin committed Oct 3, 2024
1 parent 880da60 commit 6f81505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MystEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ const MystEditor = ({
ref=${preview}
mode=${mode}
onClick=${(ev) => {
handlePreviewClickToScroll(ev, text.lineMap, preview);
if (syncScroll && mode == "Both") handlePreviewClickToScroll(ev, text.lineMap, preview);
}}
><${PreviewFocusHighlight} className="cm-previewFocus" /><//
><//>
Expand Down

0 comments on commit 6f81505

Please sign in to comment.