Skip to content

Differentiate Left/Right click in PointerGestureRecognizer #24666

@cdecron

Description

@cdecron

Description

Hello,

PointerGestureRecognizer doesn't provide any parameter to detect if it's a left or right click.
To detect left/right click, we need to use TapGestureRecognizer, which provides Buttons parameter, however TapGestureRecognizer doesn't allow to detect pointer down, it only detects pointer up with its event Tapped.

Thus, what is need is PointerGestureRecognizer which allows to detect left/right click, or a TapGestureRecognizer which allows to detect pointer down.

Thank you

(this is a duplicate of this topic which has been closed whereas problem is not solved)

Public API Changes

PointerGestureRecognizer pointerGestureHandler = new PointerGestureRecognizer();
pointerGestureHandler.Buttons = ButtonsMask.Primary;

Intended Use-Case

In my app, user can do different actions when clicking down, moving pointer and clicking up, and thesse actions must be different for each mouse buttons.
However, with PointerGestureRecognizer I can't specifiy which mouse button is doing the action.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions