Skip to content

Commit

Permalink
fix #1404
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Apr 17, 2017
1 parent 4bfa3eb commit ea24ae8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class Selection {
}
});
this.emitter.on(Emitter.events.SCROLL_BEFORE_UPDATE, () => {
if (!this.hasFocus()) return;
let native = this.getNativeRange();
if (native == null) return;
if (native.start.node === this.cursor.textNode) return; // cursor.restore() will handle
Expand Down

0 comments on commit ea24ae8

Please sign in to comment.