<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Helvetica, Arial, sans-serif">Your way:<br>
mousedown: nothing<br>
mouseup: if there is a feature there, unselect the old one (if any) and
select the new one<br>
<br>
My way:<br>
mousedown: deselect the old one (if any)<br>
mouseup: if there is a feature there, select it<br>
<br>
The way I have it, clicking on a void will unselect the feature. If
you keep selecting the same feature over and over, well, why are you
doing that again? I suppose you could have the control remember the
previously selected feature and not re-select it, but that's not the
way I coded it. </font><br>
<br>
Eric Lemoine wrote:
<blockquote
cite="mid:5ec103de0711141122hc3ced45l98ad69b896a05d41@mail.gmail.com"
type="cite">
<pre wrap="">On Nov 14, 2007 8:01 PM, Jeff Yutzler <a class="moz-txt-link-rfc2396E" href="mailto:jeff.yutzler@ionicenterprise.com"><jeff.yutzler@ionicenterprise.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> I was not happy with this behavior so I updated the control so that a
mousedown deselects the current feature (if any) and a mouseup attempts to
select a feature under the mouse, if any. This seemed to be a more natural
approach.
</pre>
</blockquote>
<pre wrap=""><!---->
I don't follow you. If you unselect on mousedown and select on mouseup
you can't really unselect your feature, can you? Am I missing the
point?
--
Eric
</pre>
</blockquote>
</body>
</html>