Merge pull request #1824 from ahocevar/replay-hit-detection
Iterating through the hit detection replay batch fails when geometryRenderFunction returns false
This commit is contained in:
@@ -490,6 +490,7 @@ ol.render.canvas.Replay.prototype.reverseHitDetectionInstructions_ =
|
|||||||
goog.asserts.assert(begin == -1);
|
goog.asserts.assert(begin == -1);
|
||||||
begin = i;
|
begin = i;
|
||||||
} else if (type == ol.render.canvas.Instruction.BEGIN_GEOMETRY) {
|
} else if (type == ol.render.canvas.Instruction.BEGIN_GEOMETRY) {
|
||||||
|
instruction[2] = i + 1;
|
||||||
goog.asserts.assert(begin >= 0);
|
goog.asserts.assert(begin >= 0);
|
||||||
ol.array.reverseSubArray(this.hitDetectionInstructions, begin, i);
|
ol.array.reverseSubArray(this.hitDetectionInstructions, begin, i);
|
||||||
begin = -1;
|
begin = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user