diff --git a/lib/OpenLayers/Events/buttonclick.js b/lib/OpenLayers/Events/buttonclick.js index f772c761f4..6520b83a0d 100644 --- a/lib/OpenLayers/Events/buttonclick.js +++ b/lib/OpenLayers/Events/buttonclick.js @@ -109,7 +109,7 @@ OpenLayers.Events.buttonclick = OpenLayers.Class({ * {DOMElement} The button element, or undefined. */ getPressedButton: function(element) { - var depth = 5, // limit the search depth + var depth = 3, // limit the search depth button; do { if(OpenLayers.Element.hasClass(element, "olButton")) {