<div><div style="font-size:inherit"><div dir="auto" style="font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;background-color:rgba(0,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)">(Resending, forgot to include the mailing list.)</div><div dir="auto" style="font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;background-color:rgba(0,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></div><div dir="auto" style="font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;background-color:rgba(0,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)">Interesting. It would be nice to have pinch gestures too, although I guess it could complicate platform independence.</div><div dir="auto" style="font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;background-color:rgba(0,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></div><div dir="auto" style="font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;background-color:rgba(0,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)">For dragging I implement allowsSubmorphDragging in the owner, and the morph that I want to move with dragging implements aboutToBeGrabbedBy: returning an invisible morph that is actually dragged with the hand and sends morphPosition: to the target morph each time it changes position. In this way the morph that I’m moving with the drag gesture doesnt change owner, just moves within the owner (typically a ScrollerMorph or a ZoomerMorph in my project). It’s kind of a trick, but seems to work fine so far.</div><div dir="auto" style="font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;background-color:rgba(0,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></div><div dir="auto" style="font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;background-color:rgba(0,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)">Scrolling is more tricky than dragging because the mouse pointer doesnt move while scrolling, but what’s under the mouse changes as the morphs move. If another morph that handles scrolling passes under the mouse pointer while scrolling it takes over the scrolling events. For example if I’m scrolling something with knobs and a knob passes under the mouse pointer it stops moving the morph and starts moving the knob, so I have to be more careful with scrolling.</div></div><br></div><div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, Jul 5, 2026 at 16:08 Hilaire Fernandes <<a href="mailto:hfern@free.fr">hfern@free.fr</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"><u></u>

  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p><font size="4" style="color:rgb(0,0,0)">It depends on the tool like the select or pen
        tools for example. With the former tool, I use the mouse wheel
        for zooming and dragging the background for panning, as you. But
        I duplicated these functionalities with 3 WheelMorphs, it useful
        when the selected tool is a pen, a highlighter, an eraser, a
        group selector, for examples.</font></p>
    <p><font size="4" style="color:rgb(0,0,0)">The normal device I am planning for the Dybo
        hardware is a pen, with possibly only one button, so I have to
        provide widget alternatives.</font></p>
    <p><font size="4" style="color:rgb(0,0,0)">You have likely more options regarding the input
        device for your project. For three finder drag, do you have any
        special to implement in the Cuis code?</font></p></div><div text="#000000" bgcolor="#FFFFFF">
    <div>Le 03/07/2026 à 20:27, Luciano
      Notarfrancesco a écrit :<br>
    </div>
    <blockquote type="cite">
      <div dir="auto">BTW, what gestures do you use for panning/moving
        and zooming in/out? In my project I’m using cmd+vertical-scroll
        for zoom in/out and dragging the background for panning, but I
        only used it on MacOS with the touchpad 2-finger scrolling and
        3-finger drag, I still wonder what’s the best choice of gestures
        for other platforms…</div>
    </blockquote>
    <pre cols="72" style="font-family:monospace">-- 
<a href="http://mamot.fr/@drgeo" target="_blank" style="font-family:monospace">http://mamot.fr/@drgeo</a></pre>
  </div>

</blockquote></div></div>