Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Clear previous boundaries when buffering a new marker window
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Scandurra committed May 3, 2017
1 parent cecb1f0 commit ec5eed7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/marker-text-decoration-layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,12 @@ class MarkerTextDecorationLayerIterator {
// Fetch more marker boundaries if needed
if (this.boundaryIndex === this.boundaries.length - 1) {
const {row, column} = this.getPosition()
const {boundaries} = this.layer.markerLayer.index.findBoundariesAfter(Point(row, column + 1), this.layer.boundariesPerQuery)
this.boundaries.push(...boundaries)
const {boundaries} = this.layer.markerLayer.index.findBoundariesAfter(
Point(row, column + 1),
this.layer.boundariesPerQuery
)
this.boundaries = boundaries
this.boundaryIndex = -1
}

do {
Expand Down

0 comments on commit ec5eed7

Please sign in to comment.