Merge pull request #5597 from schmidtk/master

Avoid unnecessary getImageData calls in hit detection
This commit is contained in:
Andreas Hocevar
2016-07-15 12:04:28 +02:00
committed by GitHub

View File

@@ -270,7 +270,7 @@ ol.render.canvas.Replay.prototype.replay_ = function(
i = /** @type {number} */ (instruction[2]);
} else if (opt_hitExtent !== undefined && !ol.extent.intersects(
opt_hitExtent, feature.getGeometry().getExtent())) {
i = /** @type {number} */ (instruction[2]);
i = /** @type {number} */ (instruction[2]) + 1;
} else {
++i;
}