Okay, this was fixed already in OL trunk in the GetFeature control (I was using 2.8) by having the case handled where bounds is not an OpenLayers.Bounds object.
selectBox: function(position) { var bounds; if (position instanceof OpenLayers.Bounds) { var minXY = this.map.getLonLatFromPixel( new OpenLayers.Pixel(position.left, position.bottom) ); var maxXY = this.map.getLonLatFromPixel( new OpenLayers.Pixel(position.right, position.top) ); bounds = new OpenLayers.Bounds( minXY.lon, minXY.lat, maxXY.lon, maxXY.lat ); } else { bounds = this.pixelToBounds(position); } Best regards, Bart On Feb 17, 2010, at 3:26 PM, Bart van den Eijnden wrote: > Hi list, > > I am tracking down a problem where a control has a click as well as a box > handler, and in IE8 when doing a click the box handler is executed instead of > the click handler. > > In IE6 and Firefox all works fine. > > Any ideas/pointers? > > TIA. > > Best regards, > Bart > _______________________________________________ > Dev mailing list > Dev@openlayers.org > http://openlayers.org/mailman/listinfo/dev > _______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev