Skip to content

Update cursors for different mouse modes #129

Description

@mihailyonchev

Abstact (Enhancement)

Currently, the library uses the same mouse cursor for all mouse modes (pan/zoom, lasso, rotate). This can be confusing for users who may not realize which mode they are in.

To improve the user experience, it would be helpful to have different cursors for different mouse modes. For example, the cursor could be a hand with a grabbing icon for pan/zoom mode, a crosshair for lasso mode, and an arrow for rotate mode.

I believe that this change would make the 'regl-scatter' library easier to use and more intuitive for users.

Implementation

I think that this could be also part of the dom-2d-camera repository. However, I can't see such parameters supported there. Shall we open the issue there?

Otherwise, we could easily manipulate the mouse mode via the canvas.style.cursor

I could potentially do this after work, but I will wait for your input first @flekschas

Activity

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