From 4f0e5374c37d1138e958857022f542cd0dc47e59 Mon Sep 17 00:00:00 2001 From: Chris Loer Date: Fri, 10 Nov 2017 16:02:11 -0800 Subject: [core] Skip fade animation for placed symbols that are currently offscreen. Don't mark items that are outside the collision grid range as placed. Requires new ignore because GL JS issue #5654 allows insertion of symbols outside the CollisionIndex range, and those symbols can cascade in to affect items within the viewport. --- src/mbgl/util/grid_index.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mbgl/util') diff --git a/src/mbgl/util/grid_index.cpp b/src/mbgl/util/grid_index.cpp index 1e1dcf0ed5..afd469501d 100644 --- a/src/mbgl/util/grid_index.cpp +++ b/src/mbgl/util/grid_index.cpp @@ -103,7 +103,7 @@ bool GridIndex::hitTest(const BCircle& queryBCircle) const { template bool GridIndex::noIntersection(const BBox& queryBBox) const { - return queryBBox.max.x < 0 || queryBBox.min.x > width || queryBBox.max.y < 0 || queryBBox.min.y > height; + return queryBBox.max.x < 0 || queryBBox.min.x >= width || queryBBox.max.y < 0 || queryBBox.min.y >= height; } template -- cgit v1.2.1