indigo icon indicating copy to clipboard operation
indigo copied to clipboard

Have a way of discerning click events

Open hobnob opened this issue 11 months ago • 1 comments

At the moment click events only fire on a left mouse click, with no way to discern a right click from any other click event. We should fire the click event when a right or left click happen, allow discerning which button was clicked, and allow any pointer device clicks.

hobnob avatar Feb 28 '24 09:02 hobnob

I've had a look into this, two things:

  1. There is no Right click, but we could latch onto the contextmenu event, what do you think?
  2. There is a workaround. You can listen for pointer events, like this:
    case c @ PointerEvent.PointerUp(_) =>
      println(c.button) // Tells you which button was released, e.g. : `RightMouseButton`
      Outcome(viewModel)

davesmith00000 avatar Apr 20 '24 16:04 davesmith00000