Commit 144ff1bd authored by dtseng's avatar dtseng Committed by Commit bot

Use a predicate that isn't so granular during continuous read.

Currently, continuous read uses the Node predicate. We want to use the DOM_NODE predicate because it doesn't chunk up nodes quite as much. This results in smoother reading (e.g. not breaking apart between lines).much.

Review URL: https://codereview.chromium.org/1592513002

Cr-Commit-Position: refs/heads/master@{#370784}
parent c4a11e8b
...@@ -418,7 +418,7 @@ Background.prototype = { ...@@ -418,7 +418,7 @@ Background.prototype = {
.go(); .go();
prevRange = this.currentRange_; prevRange = this.currentRange_;
this.setCurrentRange( this.setCurrentRange(
this.currentRange_.move(cursors.Unit.NODE, Dir.FORWARD)); this.currentRange_.move(cursors.Unit.DOM_NODE, Dir.FORWARD));
if (!this.currentRange_ || this.currentRange_.equals(prevRange)) if (!this.currentRange_ || this.currentRange_.equals(prevRange))
global.isReadingContinuously = false; global.isReadingContinuously = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment