Skip to content

Commit f40d6f8

Browse files
committed
Update
1 parent 0656cef commit f40d6f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/virtual.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ export default class Virtual {
110110
handleDataSourcesChange () {
111111
let start = this.range.start
112112

113-
if (this.direction === DIRECTION_TYPE.FRONT) {
113+
if (this.isFront()) {
114114
start = start - LEADING_BUFFER
115-
} else if (this.direction === DIRECTION_TYPE.BEHIND) {
115+
} else if (this.isBehind()) {
116116
start = start + LEADING_BUFFER
117117
}
118118

0 commit comments

Comments
 (0)