<br><div><span class="gmail_quote">On 17/11/2007, <b class="gmail_sendername">mike</b> <<a href="mailto:mike@bristolbeat.co.uk">mike@bristolbeat.co.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>I get the same behaviour - in the select-feature demo, clicking on the<br>selected point unselects it, but in modify-feature it does not.<br><br></blockquote></div><br>I think the dragStart event, which is used by ModifyFeature for only
OpenLayers.Geometry.Point (not lines and polygons) overrides the default click behaviour.<br><br>If the selected object has changed, the unselect event is handled here, but if the selection has not changed, it is not handled. Perhaps that's what is missing. However, it's not that simple because the click event could be the start of a drag action - so how to distinguish between these?
<br><br>I'm guessing it would have to be fired by the mouse up event, maybee checking to see if we did actually drag the point or not, but I can't see how to do that at the moment...<br><br>As an aside I notice the click-drag behaviour works nicely except for the first point selected,
i.e. when nothing else is selected you have to click a point, release, then click again and drag - a single click-drag does not work. Once a feature is selected, then click-drag works fine.<br><br>mike<br><br>