~eliasnaur/gio#177: 
Support right-click

Currently, the gesture.Click is limited for left-click:

if e.Source == pointer.Mouse && e.Buttons != pointer.ButtonLeft { break }

So what is the alternative to handle right-click? If doesn't exists, what would be the best way of doing that? Adding an field of Button into the existent ClickEvent?

Status
REPORTED
Submitter
~inkeliz
Assigned to
No-one
Submitted
a month ago
Updated
a month ago
Labels
No labels applied.

~inkeliz a month ago

Using the pointer.InputOp is the alternative for now. But I would suggest to have another simpler option to do that.

~eliasnaur a month ago

On Thu Nov 19, 2020 at 2:59 AM CET, ~inkeliz wrote:

Using the pointer.InputOp is the alternative for now. But I would suggest to have another simpler option to do that.

I like that users of gesture.Click don't have to worry about which button was reported. How about adding a gesture.RightClick for your purpose?

Elias

Register here or Log in to comment, or comment via email.