Bug 35537 - Xamarin.Forms Button Clicked registers event despite button loaded
Summary: Xamarin.Forms Button Clicked registers event despite button loaded
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 1.5.1
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-11-04 12:09 UTC by James
Modified: 2016-04-13 19:50 UTC (History)
4 users (show)

Tags: ac
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_ON_ROADMAP

Description James 2015-11-04 12:09:29 UTC
As reported:

Put two buttons A and B on the same page and assign a PushAsync(PageA) respectively PushAsync(PageB) action on them. Press A and hold it, press B and hold it as well. Now let go of button A – PageA opens. If you now let go of B, PageB also opens.

Steps to reproduce with attached sample:
1. Open application
2. Deploy to device (easier to test)
3. Press one finger down on button A, hold down
4. Press finger down on Button B
5. Lift up Finger on A-> Navigates to Page A, keep Finger b down on screen
6. Lift finger B.

Expected Result:
Nothing happens

Actual result: B Button click is still registered and navigates to Page B despite the context has changed.
Comment 1 James 2015-11-04 12:18:20 UTC
See project sample here:

https://www.dropbox.com/s/9w0wh76n7o2out7/FormsDoubleTap.zip?dl=0
Comment 2 Paul DiPietro [MSFT] 2015-11-04 15:24:39 UTC
Seems to be happening on Android (tried an S5) but not iOS (tried an iPhone 6).
Comment 3 Jason Smith [MSFT] 2016-04-13 19:50:27 UTC
Thank you for your report. At this time there are no plans to implement any changes around this issue. This is pretty much how the underlying toolkits operate.

Warm regards,
Xamarin Forms Team