We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent768ed66 commit5250eb2Copy full SHA for 5250eb2
SCXcodeMinimap/SCXcodeMinimapView.m
@@ -621,6 +621,10 @@ - (void)updateSearchResults
621
622
- (void)updateOffset
623
{
624
+if(self.editorTextView.textStorage.editedMask) {
625
+return;
626
+ }
627
+
628
[self.editorTextView.layoutManagerensureLayoutForTextContainer:self.editorTextView.textContainer];
629
630
CGFloat editorTextHeight =CGRectGetHeight([self.editorTextView.layoutManagerusedRectForTextContainer:self.editorTextView.textContainer]);
@@ -633,7 +637,7 @@ - (void)updateOffset
633
637
[self.selectionViewsetFrame:selectionViewFrame];
634
638
return;
635
639
}
636
-
640
641
CGFloat editorYOffset =CGRectGetMinY(self.editor.scrollView.contentView.bounds) +ABS(CGRectGetMinY(self.editorTextView.frame));
642
643
CGFloat ratio = (adjustedMinimapContentHeight / adjustedEditorContentHeight) * (1 / self.scrollView.magnification);