Skip to content

Commit

Permalink
fix: fixes issue with long scrolling notes with new MS syntax in LP (c…
Browse files Browse the repository at this point in the history
…loses #149)
  • Loading branch information
valentine195 committed Jan 12, 2022
1 parent 8f4d8dc commit 03582c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ export default class ObsidianAdmonition extends Plugin {
}

update(update: ViewUpdate) {
if (update.heightChanged) return;
if (!self.data.livePreviewMS) return;
const md = update.view.state.field(editorViewField);
if (!md.leaf?.view) return;
Expand Down

0 comments on commit 03582c6

Please sign in to comment.