Ticket #1266 (closed feature: fixed)
prevent the feature handler from stopping the propagation of clicks occuring on features
|Reported by:||openlayers||Owned by:||elemoine|
What I want to do is to preserve 'click' functionality even if the click
happened over a draggable feature.
Setting the drag handler's stopDown property to false won't help you because the event you want to get "click" not "mousedown". Anyhow the feature handler (also used in the drag feature control) stops the propagation of clicks that occur on features. That's what kills you here.
Currently, there's no way to prevent the feature handler from stopping the propagation of clicks occuring on features. I think this deserves a ticket and a patch. In the meantime, you can try the patch attached to this email. The patch adds the property stopHandledClick to the feature handler. By default, stopHandledClick is set to true. By making it false, clicks occuring on features will propagate.
So apply the patch and replace
drag.dragHandler.stopDown = false;
drag.featureHandler.stopHandledClick = false;