-
Notifications
You must be signed in to change notification settings - Fork 3.4k
7.1 - 8.3 Touch events not firing ng-click on Android/IOS hybrid apps/mobile browsers #1826
Comments
You should probably post some reproducible code. |
@gustavohenke Do you have any suggestions on how I could do that? I do not have the issue in the web based ripple emulator which makes me believe if I build out my entire project into a plunker that I would have not have the issue there either. It seems as if it only happens when deployed to a device. Here is my index.html
|
I have discovered more information related to the issue. It looks like I was slightly incorrect in my op about a few things...
|
I have created a brand new Cordova Visual Studio project with only Angular Material, Ionc and their dependencies. Regular html buttons will not work with the ng-click at all and the material buttons will only work after many repeated presses. As soon as you remove Ionic OR downgrade to Material Angular 7.0 + Hammer.js the ng-clicks will work perfectly.
|
Ok so I have found the issue is larger than just android hybrid apps. I have confirmed the issue happens even on a mobile website with IOS (Safari/Chrome) and Android (Chrome). You can see the bottom material button will still respond but not consistently. The experience is even even worse on my cordova app. |
yep i am aware of that, the trick is to only integrate the ionic css when trying to work with both framework |
@thaiat but then you cannot use the ion views, etc |
Is this related to the issue with hammer.js being removed as speculated in this issue: #1406 ? |
Nothing yet? Is there some palliative solution? |
@thiagoaos Guessing not until 9.0 is ready. I am dead in the water too |
As a palliative, for now you can use
on each angular material directive that is not playing nice with the Ionic Framework, like the selects and the tabs. Something like <md-select placeholder="Pick" ng-model="vpos.currency" flex data-tap-disabled="true">
<md-option value="1" data-tap-disabled="true">One</md-option>
<md-option value="2" data-tap-disabled="true">Two</md-option>
</md-select> |
This works, but also disables scrolling. So on mobile its not a good Brad Martin
|
In which directive do you find scrolling is not working? For the md-select scrolling is working both on android and ios (for me at least). Do you want me to provide some code? |
Scrolling will work, but if you attempt scrolling while tapping/holding an On Fri, Mar 27, 2015 at 10:50 AM, Daniele De Matteo <
|
I think this issue can be merged with #1406 and #1528. @marcysutton @ajoslin @ThomasBurleson |
Is this still planned for 0.9.0 ? |
I too would like to know if this is planned for 0.9.0 |
commit 7b78071 seems to be related to this bug and several other related bugs. |
Using the rawgit references, and on Ionic, still broken. |
@drastick - we are working on these gesture issues; targeted for the upcoming 0.9 release. |
also having this problem |
But it only happens after I build to a device. Tried all the above with no results. |
For mobile solutions that are also using jQuery, you can now use $mdGestureProvider in app = angular.module('MyApp', ['ngMaterial'])
.config(function( $mdGestureProvider ) {
$mdGestureProvider.skipClickHijack();
}); This will configure $mdGesture to not intercept clicks (stop propagation and prevent defaults). |
Thanks a lot for the above fix. It solved a huge issue which was causing a major headache for me. |
Hi all, button events are not triggered in cordova ios mobile app, |
I have a hybrid app that is Ionic and Material. Performance was acceptable on on all versions of Material Angular below 8.0. 8.0 - 8.3 on the Ripple emulator works perfect but as soon as I deploy to a device the application is such a slug that it is completely unusable. I am not seeing any errors in visual studio.
This is my environment:
Material Angular 8.0 - 8.3
Ionic bundle: Ionic, v1.0.0-beta.14, angular 1.3.6
Visual Studio 2013 Community Edition w/ Cordova
Moto X 2013 Android 4.4.4
Any help would be greatly appreciated!
--Update 1--
I have discovered more information related to the issue. It looks like I was slightly incorrect in my op about a couple things...
--Update 2--
It is a conflict with the Ionic framework that started at version 7.1 of Angular Material. If you remove Ionic from your project the ng-click will work again
--Update 3--
I have confirmed this same issue happens not just in android apps but on android and IOS mobile websites as well. I have hosted a test site with material 8.3 here http://www.louspubcrawl.com/
The text was updated successfully, but these errors were encountered: