wzr1337 / angular-gestures

AngularJS directive that adds support for multi touch gestures to your app. Based on hammer.js.
MIT License
509 stars 100 forks source link

Hold gesture strange behaviour #22

Closed pitrackster closed 9 years ago

pitrackster commented 10 years ago

Hi ! Thanks for the job done with this project !

Everything works perfectly on desktop browsers, but I'm facing a strange behavior with the hm-hold event on tablets:

iOS 7 + Safari: OK iOS 7 + Chrome: Event does not fire when set on an image map tag (maybe this has nothing to do with hammer or angular-gesture).

W8 (on a pro tablet) + IE: hold event is fired but will cause entire page selection and will show a contextual menu (right click menu ?).

W8 (on a pro tablet) + Firefox: hold event is not firing at all W8 (on a pro tablet) + Chrome: hold event is also firing a click event I have no Android device for the moment so I can't tell for Android borwsers.

I use the directive as follow :

<area shape="rect" ng-repeat="item in data.items" id="{{item.id}}" hm-tap="playVowel($event)" hm-hold="showItemDetails($event)" coords="{{item.coords}}"/>

Am I doing something wrong ? Has anyone faced the same issues ? Is there any solution / workaround ? Is this a hammer.js or browser(s) issue ?

Regards

wzr1337 commented 9 years ago

I can not check on W8. Can you please check if issue persists with 0.3.0 ?

pitrackster commented 9 years ago

Hi there ! Excuse me for the time It took to me to answer... I've downloaded the last version of gesture.js (don't know if it's v0.3.0) and the latest version of hammer.js (v2.0.4).

Unfortunately I still have the same problems (quite) :

I have to say that it is exactly the same with hammer.js basic demo : http://codepen.io/jtangelder/pen/lgELw

Regards

wzr1337 commented 9 years ago

OK, can you please file an issue on hammers github? I can not fix the issue here