diff --git a/rbush.js b/rbush.js index b8af232..74ae689 100644 --- a/rbush.js +++ b/rbush.js @@ -147,7 +147,7 @@ rbush.prototype = { } } - if (!goingUp && !node.leaf && this._intersects(bbox, node.bbox)) { // go down + if (!goingUp && !node.leaf && this._contains(node.bbox, bbox)) { // go down path.push(node); indexes.push(i); i = 0;