#1 2016-08-21 06:35:25

tin
Member
Registered: 2016-03-20
Posts: 161

Issue with click delay in iOS and Android apps

I search why app performance in ios was slow.So I found it.

"This delay occurs because the operating system is waiting roughly 300ms to see if the user is going to tap the target again (and therefore perform a double-tap)."

https://ccoenraets.github.io/cordova-tu … delay.html

David,can you add fastclick as normally function in appbuilder?It will solve other ios dev too.thanks.
or it already have it?

ref

https://github.com/ftlabs/fastclick

https://www.youtube.com/watch?v=0_SmLvffT_4

example with fastclick and not (open in mobile browser)

http://ftlabs.github.io/fastclick/examples/layer.html

Offline

#2 2016-08-21 11:48:30

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,660
Website

Re: Issue with click delay in iOS and Android apps

Hello tin,

Thanks for your research. Please, let me to take a look. I will inform here about any progress. smile

Offline

#3 2016-08-21 12:39:52

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,660
Website

Re: Issue with click delay in iOS and Android apps

Hello tin,

Ok! A little more about this! I know about the "300 ms" issue in the past and for that the AngularJS's Touch module is integrated in the App Builder applications. Taking a look at the module's documentation today I can see a deprecated note about the ngClick directive provided by the ngTouch module: they are now disabled by default, and therefore we need to activate it by ourself.

We can do it, however, AngularJS recommend now the usage of the FastClick library to deal with the 300 ms, so this is what the new App Builder releases does, that is, now our App Builder applications incorporates the FastClick library from the scratch. We no need to do anything, that is, we can continue working like until now, but behind the scene our applications uses FastClick now.

Please, tin, update your App Builder copy and try it. And thanks for your suggestion! smile

Offline

#4 2016-08-21 13:40:02

tin
Member
Registered: 2016-03-20
Posts: 161

Re: Issue with click delay in iOS and Android apps

Wow.thank david.I will test on IOS and will tell you about performance result.
another library that I found is hammer-time.It up to date then fastclick
https://github.com/hammerjs/hammer-time

Offline

#5 2016-08-21 13:43:17

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,660
Website

Re: Issue with click delay in iOS and Android apps

Hello tin,

Please, let me if the FastClick integration works as expected! On the other hand, I remember trying with Hammer in the past. Certainly I can take a look again. Anyway FastClick is not updated... because probably they no need to be updated! Don't touch the things if everything works well! Seriosly, AngularJS recommend the usage of FastClick, so I think this is the choice now. smile

Offline

#6 2016-08-21 13:57:31

tin
Member
Registered: 2016-03-20
Posts: 161

Re: Issue with click delay in iOS and Android apps

I test it,David.On android performance was better now.
but in IOS 9.02 still laggy. 300 ms problem still there.
I see your code,that you add fastclick in builder.js and attech it in app.js smile

Offline

#7 2016-08-21 14:18:56

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,660
Website

Re: Issue with click delay in iOS and Android apps

Hello tin,

Since we are talking right now on the support chat, I am not sure about what to say here. smile

Apparently FastClick is running well, since they works in all environments, and also on iOS. Maybe the results is not what you expected... but certainly it's difficult to measure 300 ms of time... In my opinion we no need to worry about this, since we are following the AngularJS instructions to integrate FastClick in our applications.

Offline

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.