Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 fingers tap #146

Closed
ptaranto opened this issue Apr 17, 2018 · 5 comments
Closed

2 fingers tap #146

ptaranto opened this issue Apr 17, 2018 · 5 comments

Comments

@ptaranto
Copy link

Is there a way to implement/detect a tap with 2 fingers?

@osdnk
Copy link
Contributor

osdnk commented Apr 19, 2018

@ptaranto
I think it will be done soon

kmagiera pushed a commit that referenced this issue May 7, 2018
## Motivation
https://github.com/brentvatne/bottom-sheet-gesture-handler-experiment
Got inspired by @brentvatne code and made it possibile to implement bottom sheet in a bit hacky way using very long TapHandler. The problem was to to trigger scrolling scrollview at the end of extending a main card and not to trigger it when card is not opened fully.
Also then it became extremely easy to resolve another issue: #146

## Changes
Initially I was trying to made it possible to track route (and maxDeltas) using 'normal' TapGestureHandler. Then I decided to implement new `TapGestureHandler` as quite unobvious extension of `UIPanGestureRecognizer` which gives us many ways of parameterization.
However, I wasn't really into extending out `PanGestureHandler` which seems to be unnecessary.
It gives a possibility to fail gesture whet its position pass `maxDeltaY` and then it allows scroll gesture to be triggered then. If it won't fail, scroll won't be scrolled.
@osdnk
Copy link
Contributor

osdnk commented May 16, 2018

done :), @ptaranto

@osdnk osdnk closed this as completed May 16, 2018
@ithieund
Copy link

@osdnk ,
Can you show me how to detect 2 fingers tap with this plugin?

Thanks.

@osdnk
Copy link
Contributor

osdnk commented Jun 15, 2018

@roviera
Copy link

roviera commented Jun 24, 2023

@osdnk , I'm not being able to detect 2 fingers on just one tap, can you provide any guidance on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants