indigo
indigo copied to clipboard
Have a way of discerning click events
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.
I've had a look into this, two things:
- There is no Right click, but we could latch onto the contextmenu event, what do you think?
- 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)