[Cuis-dev] Geodreieck!

Luciano Notarfrancesco luchiano at gmail.com
Sun Jul 5 03:38:13 PDT 2026


(Resending, forgot to include the mailing list.)

Interesting. It would be nice to have pinch gestures too, although I guess
it could complicate platform independence.

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.

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.


On Sun, Jul 5, 2026 at 16:08 Hilaire Fernandes <hfern at free.fr> wrote:

> 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.
>
> 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.
>
> 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?
> Le 03/07/2026 à 20:27, Luciano Notarfrancesco a écrit :
>
> 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…
>
> -- http://mamot.fr/@drgeo
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260705/bad63760/attachment.htm>


More information about the Cuis-dev mailing list