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

[Enhancement] Automatic execution of LongTapCommand #46

Open
SymxnCreator opened this issue Jan 25, 2020 · 5 comments
Open

[Enhancement] Automatic execution of LongTapCommand #46

SymxnCreator opened this issue Jan 25, 2020 · 5 comments

Comments

@SymxnCreator
Copy link

Hello,

If I use the LongTap command, it will only be executed if it is held down for some time and then released.

As a user, I would find it better if I only have to hold down for a while and then the command is executed automatically.

What do you mean?

@mrxten
Copy link
Owner

mrxten commented Jan 26, 2020

Hi, if I correct remember, long tap command executes after some time, not after releasing.

@SymxnCreator
Copy link
Author

No, unfortunately not. The LongTap command is only triggered when an element is released.
Please try it out.

@mrxten
Copy link
Owner

mrxten commented Jan 26, 2020 via email

@SymxnCreator
Copy link
Author

Xamarin.Forms on Android
Xamarin.Forms version: 4.4.0

I tested it on an Android 7 and Android 10 device. In both cases, the LongTap command is only triggered when you release it.
Unfortunately, I cannot test whether the problem also exists on iOS at the moment.

@diegoserpa
Copy link

I experienced the same issue.
In my case, I have a view wich I attach two commands:

  • Tap: to navigate to another page;
  • LongTap: to display an action sheet;

When I tap the view, it navigates to another page as expected. If I long press the view, it navigates to the page (behavior wich is expected in a single short tap) and when I release the action sheet is displayed (the behavior expectd in a long tap).

Additional info:
Xamarin.Forms on Android
Xamarin.Forms version: 4.3.0.991221

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

No branches or pull requests

3 participants