We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82a840c commit d8d58ddCopy full SHA for d8d58dd
src/HashMap.js
@@ -97,10 +97,10 @@
97
obj = results[i];
98
if (!obj) continue; //skip if deleted
99
id = obj[0]; //unique ID
100
-
+ obj = obj._mbr || obj
101
//check if not added to hash and that actually intersects
102
- if (!found[id] && obj.x < rect._x + rect._w && obj._x + obj._w > rect._x &&
103
- obj.y < rect._y + rect._h && obj._h + obj._y > rect._y)
+ if (!found[id] && obj._x < rect._x + rect._w && obj._x + obj._w > rect._x &&
+ obj._y < rect._y + rect._h && obj._h + obj._y > rect._y)
104
found[id] = results[i];
105
}
106
0 commit comments