Skip to content

TapGestureRecognizer fails to activate correctly when a long press action is performed on iOS and macOS platforms #30832

@SanjaySF4372

Description

@SanjaySF4372

Description

When using a control derived from ControlLayout, long-press behavior differs between platforms. On Windows and Android, the tap gesture successfully triggers when the user releases their pointer after a long press. However, on macOS and iOS, if a user performs a long press exceeding 2 seconds and then releases their pointer, the tap action fails to trigger as expected.

Steps to Reproduce

1.Run the sample in macOS or iOS.
2. Long press (hold for more than 2 seconds) the item which has the text " Tap to Expand/Collapse".
3. When tapping the item, it will update and shown the tap count below.
4.When long pressing it ,Observe that the label does not update tap count, indicating the interaction is not triggered.

CustomSample 3.zip

Link to public reproduction project repository

No response

Version with bug

9.0.50 SR5

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

Labels

area-gesturesGesture typesplatform/iosplatform/macosmacOS / Mac Catalysts/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions