IPhone : Hammer.js stops working after a while

on Wednesday, March 25, 2015

I'm having this strange issue, where I'm using hammer.js library to create some responsive table functionalities.


When I'm testing the page on my iPhone (this issue is not happening on any Android device, iPhone only), the functionality works fine if I'm testing it from my local machine - I'm using Ghostlab for testing pages from local machine. However, when I deploy the code to staging server, functionality breaks. What I mean by breaks is that it works fine, but it stops working after 2 pan events (pan event is hammer.js event). This issue is both on Chrome and Safair on iPhone.


I also opened Safari console to my phone and I'm not getting any JS errors. And I tried copying local .js file to staging server and that didn't solve the issue either.


Does anyone have an idea, why the same code isn't working on staging server but it does on local server?


0 comments:

Post a Comment