On Thu, Aug 8, 2019 at 2:09 PM Larry Clapp <firstname.lastname@example.org> wrote:
>> Is there a gesture to drag the mouse and get back both an x and y> offset? I see the Scroll gesture but it appears to be x or y but not> both. Can you use both at once?>
You can use both at once, but then only one will activate, the other will be
cancelled (type pointer.Cancel). That setup is useful for a layout.List with
"dismissable" child elements; you want to know whether the user drags in
the horizontal direction (dismiss) or in the vertical (scroll list),
but never both.
The any direction drag gesture is easier to implement, but isn't available in
the standard library. You listen for pointer press and then report any moves
relative to the press origin until release (or cancel).