<div>Hi Hans,</div><div><br></div>Could you single-click drag to move and double-click to edit text?<div><br></div><div>It&#39;s a bit weird to change the interaction depending on if the object is selected or not. </div><div>

<br></div><div>Cheers,</div><div>Joe<br><br><div class="gmail_quote">On 15 September 2011 20:21, Hans-Christoph Steiner <span dir="ltr">&lt;<a href="mailto:hans@at.or.at">hans@at.or.at</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
One thing that often bugs me when editing is the click-n-drag behavior<br>
of objects.  Here&#39;s the outline:<br>
<br>
click and release unselected object<br>
--------------------------------<br>
* mouse down selects the object<br>
* mouse up selects the text<br>
<br>
click and release selected object<br>
--------------------------------<br>
* mouse down drags the cursor in the text<br>
* mouse up does nothing<br>
<br>
click and drag unselected object<br>
--------------------------------<br>
<br>
* mouse down moves the object<br>
* mouse up releases the drag and selects the text<br>
<br>
click and drag selected object<br>
--------------------------------<br>
<br>
* mouse down moves the cursor in the text<br>
* mouse up stops that<br>
<br>
<br>
I think that a better behavior would be this.  When an unselected object<br>
is click-n-dragged, mouseup doesn&#39;t select the text or the object.  Then<br>
you can move an object, then immediately move it again without having to<br>
click to deselect it first.<br>
<br>
This can be done with a &#39;moved&#39; flag.  But I can&#39;t really find where to<br>
put it, that code is pretty hard to follow (g_rtext.c, g_text.c, and the<br>
widgetbehavior).  I attached my log of the pd-gui messages of the four<br>
cases above.<br>
<font color="#888888"><br>
.hc<br>
<br>
<br>
</font><br>_______________________________________________<br>
Pd-dev mailing list<br>
<a href="mailto:Pd-dev@iem.at">Pd-dev@iem.at</a><br>
<a href="http://lists.puredata.info/listinfo/pd-dev" target="_blank">http://lists.puredata.info/listinfo/pd-dev</a><br>
<br></blockquote></div><br></div>