bug: Stopping scroll with tap fires click on views included from external file
Type: bug
Platform: all
I have a view containing a long list of clickable items. When I scroll/flick through the list and stop it by tapping, the list stops but fires the ng-click. This is similar to #1438 which was supposed to be fixed already in release 1.0.0-rc5. However, It still happens on my project using 1.0.0.
I made 2 Plunkers to repeat the problem: Undesired behavior and Desired behavior
I found the problem occurs when I include the view template from external file (home.html), and doesn't when I move the view template to inline <script id="home.html"> tag in index.html. In other words, the clicks will not accidentally fired on the scroll views defined in index.html.
this 'custom issue form' is so silly.
Finally I was able to complete the custom issue form using my Android phone. Hope the form will work on my Mac soon.
The custom issues form is meant to prevent duplicate issues and make sure we have all the necessary information when debugging. Nothing silly about that.
@PaperMonster, looking into the issue
Well I guess the majority of ionic users are full of it. Sorry to offend, but you open an Issue via github but have to take additional steps, relinquish permissions to even get a response. Duplicate issues are going to happen unless EVERY ionic user was in communication about what issues are submitted already. Live and persistent issue moderation prevents duplicate tickets, not some lazy bot message
@PaperMonster tested this out on an iphone5 running ios8 without any issues. What device were you testing on?
@mhartington I tested on Nexus 5 Android 5.1.1 with Crosswalk.
Tested on four more devices, now without Crosswalk.
- iPhone5 iOS 8.3 - No issue
- iOS Simulator, iPhone6 iOS 8.3 - Has issue
- Samsung Galaxy S Duos (GT-S7582L) Android 4.2.2 - Has issue
- Acer Liquid C1 i110 Android 4.1.2 - Has issue
After investigating a bit more, I discovered the problem occurs when 'tap to stop' fires ionic.tap.tapTouchEnd() before ionic.views.Scroll.doTouchEnd() which makes e.isTapHandled still be undefined at the time tapTouchEnd() consumes the variable.
Hmm, still why does it not effect the inline template? @perrygovier, maybe you want to take a look at this with all the changes in native scrolling?
Any update on that? We face the same issue on both Android and iOS.
I'm experiencing the same issue on an iPhone 6s, iOS 9.1.
It seems that only the ionic.view.Scrolls instantized after ionic.tap.register() will encounter this issue, due to the wrong event listeners execution order. So an ugly workaround is to re-register tap listenters after every scrollView instantized, like:
your_module.run(function () {
var originalScroll, rebindTap;
originalScroll = ionic.views.Scroll;
rebindTap = ionic.debounce(function () {
var deregister = ionic.tap.register(document);
deregister();
ionic.tap.register(document);
}, 100);
ionic.views.Scroll = function(options) {
rebindTap();
return new originalScroll(options);
};
});
I'm having the same problem on Android 5.1.1
Having the same issue on an iPhone 6, iOS 9.1.
+1
Hello all! Is this still an issue with the latest version of ionic? Thanks!
Hello all! As it seems it has been a while since there was any activity on this issue i will be closing it for now. Feel free to comment if you are still running into this issue. Thanks for using Ionic!
Having the same issue on an iPhone 6, iOS 10.