<div dir="ltr"><div>2nd question:<br></div><div><br></div><div>Suppose the mouse pointer and the top-left corner of the object underneath it are both 2/3 of the way to the post office from their shared home.</div><div><br></div><div>1. Does the object wait until the mouse pointer has safely arrived at the post office to "snap" itself to the post office?</div><div><br></div><div>Or<br></div><div><br></div><div>2. Does the object "snap" immediately to the post office at the first step the mouse pointer takes toward the post office?</div><div><br></div><div>If it's #1, then the selection will wait at an unsnapped position until the mouse arrives at a grid line/point. So the first step of an un-aligned object will have a UX like "gravity"-- i.e., you are coaxing the selection to its initial snap position. Also, the mouse may temporarily drag outside the bounds of the object beneath it before the object snaps to its new location.<br></div><div><br></div><div>If it's #2, then the selection will immediately align itself to the grid constraints. This will provide consistency-- as any mouse motion will guarantee grid alignment-- but have a jagged feel on the first mouse motion of the un-aligned object. Edge case-- if the mouse is near the top-left corner of an unaligned object, then the object's initial grid snap will mean that the mouse will be outside the object's bounds for the rest of the time it's dragging.</div><div><br></div><div>Since people generally drag more than one or two pixels with a mouse, I'm leaning toward #1.</div><div><br></div><div>I want to pick a pattern before I implement it. The backend selection motion deals with deltas instead of coords, and that makes this a bit more of a pain than it should be.<br></div><div><br></div><div>-Jonathan<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 15, 2020 at 12:48 AM Albert Graef <<a href="mailto:aggraef@gmail.com">aggraef@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Right. So I'd imagine that the object being dragged would snap to the grid, and the other selected objects would move along with it, keeping their relative positions.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 15, 2020 at 4:59 AM Jonathan Wilkes <<a href="mailto:jon.w.wilkes@gmail.com" target="_blank">jon.w.wilkes@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Thanks for the report, Mario. That simplifies things quite a bit.</div><div><br></div><div>-Jonathan<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 14, 2020 at 9:29 PM Mario Sottile - Marionetas Mey <<a href="mailto:mariomey@gmail.com" target="_blank">mariomey@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>I think what I would like the feature to be... I tried with
      Inkscape and it works in the same way: arrow keys doesn't make
      objects snap to grid. Only mouse does. Arrow keys would be used
      for precise position.</p>
    <p>Shift-Arrow-Keys would not snap to grid. Again, they are for move
      objects faster and then, without Shift, precise position.<br>
    </p>
    <div>
      
      
       <br>
      <div>
        <p> </p>
        <table style="max-width:100%" width="100%" cellspacing="0" cellpadding="20" border="0" align="left">
          <tbody>
            <tr>
              <td width="100%" bgcolor="#FFFFFF" align="left">
                <p><img src="cid:1752a31ae8bfc93c39e1" alt="" width="250" height="54" border="0"></p>
                <p> Mario Sottile - Director<br>
                  (011) 15.6283.1576<br>
                  <a href="http://www.mariomey.com.ar" target="_blank">www.mariomey.com.ar</a><br>
                  <a href="mailto:info@mariomey.com.ar" target="_blank">info@mariomey.com.ar</a></p>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
    <div>On 14/10/20 21:48, Jonathan Wilkes
      wrote:<br>
    </div>
    <blockquote type="cite">
      <pre>Hi all,

Since we've got a grid in editmode now, I figured it's a good time to
take the plunge and implement "snap-to-grid."

I have an understanding of the basic use case. Here's an edge case:

1. Start with a spaghetti of objects positioned at arbitrary
positions. Some may be aligned with the grid, some may not.

2. Select all.

3. Press `<rightArrow>

According to existing GUI drawing programs that have a snap-to-grid
feature, what happens in this case?

Same question for `<shift-rightArrow>`.

-Jonathan
_______________________________________________
L2Ork-dev mailing list
<a href="mailto:L2Ork-dev@disis.music.vt.edu" target="_blank">L2Ork-dev@disis.music.vt.edu</a>
<a href="https://disis.music.vt.edu/listinfo/l2ork-dev" target="_blank">https://disis.music.vt.edu/listinfo/l2ork-dev</a></pre>
    </blockquote>
  </div>

_______________________________________________<br>
L2Ork-dev mailing list<br>
<a href="mailto:L2Ork-dev@disis.music.vt.edu" target="_blank">L2Ork-dev@disis.music.vt.edu</a><br>
<a href="https://disis.music.vt.edu/listinfo/l2ork-dev" rel="noreferrer" target="_blank">https://disis.music.vt.edu/listinfo/l2ork-dev</a></blockquote></div></div>
_______________________________________________<br>
L2Ork-dev mailing list<br>
<a href="mailto:L2Ork-dev@disis.music.vt.edu" target="_blank">L2Ork-dev@disis.music.vt.edu</a><br>
<a href="https://disis.music.vt.edu/listinfo/l2ork-dev" rel="noreferrer" target="_blank">https://disis.music.vt.edu/listinfo/l2ork-dev</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Dr. Albert Gr"af<br>Computer Music Research Group, JGU Mainz, Germany<br>Email: <a href="mailto:aggraef@gmail.com" target="_blank">aggraef@gmail.com</a>, web: <a href="https://agraef.github.io/" target="_blank">https://agraef.github.io/</a></div></div></div></div></div></div>
_______________________________________________<br>
L2Ork-dev mailing list<br>
<a href="mailto:L2Ork-dev@disis.music.vt.edu" target="_blank">L2Ork-dev@disis.music.vt.edu</a><br>
<a href="https://disis.music.vt.edu/listinfo/l2ork-dev" rel="noreferrer" target="_blank">https://disis.music.vt.edu/listinfo/l2ork-dev</a></blockquote></div></div>