XamEffects icon indicating copy to clipboard operation
XamEffects copied to clipboard

[Enhancement] Automatic execution of LongTapCommand

Open SimonSchnitker opened this issue 5 years ago • 5 comments

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?

SimonSchnitker avatar Jan 25 '20 13:01 SimonSchnitker

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

mrxten avatar Jan 26 '20 10:01 mrxten

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

SimonSchnitker avatar Jan 26 '20 11:01 SimonSchnitker

Which platform and xamarin forms version?26 янв. 2020 г. 14:32 пользователь SymxnCreator [email protected] написал:No, unfortunately not. The LongTap command is only triggered when an element is released. Please try it out.

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.

mrxten avatar Jan 26 '20 12:01 mrxten

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.

SimonSchnitker avatar Jan 26 '20 13:01 SimonSchnitker

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

diegoserpa avatar Mar 14 '20 20:03 diegoserpa