File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ function buildMapInner (callback) {
188
188
}
189
189
190
190
nonEmptyList . push ( 0 )
191
- // make the first line go top
191
+ // make the first line go top
192
192
_scrollMap [ 0 ] = viewTop
193
193
194
194
const parts = markdownArea . find ( '.part' ) . toArray ( )
@@ -336,7 +336,7 @@ export function syncScrollToView (event, preventAnimate) {
336
336
const scrollInfo = editor . getScrollInfo ( )
337
337
const textHeight = editor . defaultTextHeight ( )
338
338
lineNo = Math . floor ( scrollInfo . top / textHeight )
339
- // if reach the last line, will start lerp to the bottom
339
+ // if reach the last line, will start lerp to the bottom
340
340
const diffToBottom = ( scrollInfo . top + scrollInfo . clientHeight ) - ( scrollInfo . height - textHeight )
341
341
if ( scrollInfo . height > scrollInfo . clientHeight && diffToBottom > 0 ) {
342
342
topDiffPercent = diffToBottom / textHeight
You can’t perform that action at this time.
0 commit comments