Skip to content

Make lasso work with stylus / touch inputs #204

Open

Description

@fspoettel

Right now, the lasso mode is implemented via mouse events. This prevents the lasso tool from being compatible with coarser inputs such as stylus or even touch. It would be nice if the lasso tool would support those. Maybe it is enough already to switch to using the genericpointer events, I'm not sure - things like long press would have to be tested.

Use case: annotating plots on a tablet with a stylus.

This is an issue for our company, so I could work on an implementation.

Activity

  1. flekschas commented on Dec 13, 2024

    @flekschas
    Owner

    I agree, would be great if lassoing works on all devices. I'm happy to get a PR merged.

  2. gcr commented on Mar 19, 2025

    @gcr

    I'm considering adding support for panning/zooming via gesture events on MacOS. Since that could affect this issue, could you clarify your preferred annotation setup @fspoettel ? Which platforms are you on?

    Are you envisioning panning around and zooming with two fingers on a trackpad, and then annotating with a separate Wacom stylus next to it? Or do you have a special stylus that supports both multitouch and pen events?

    I'm on MacOS and have a wacom stylus but it's only got pen support, not touch. I'm not sure which javascript events it sends but can test if necessary.

    (Related: #219 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementFeature improvement or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions