Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ng-mousedown and ng-mouseup not working in mobile phone

I need to use ng-mousedown and ng-mouseup in my ionic project for mobile. when the user will click an icon and keep it pressed ng-mousedown should change the icon with another and on ng-mouseup it should take user to next page. Everything is working fine in browser but not in Mobile phone (iPhone 6).

like image 246
RAHUL DEEP Avatar asked Oct 31 '22 15:10

RAHUL DEEP


1 Answers

Maybe one of the following links will help you: ngTouch: https://docs.angularjs.org/api/ngTouch, a better alternative for ngClick ngTouchstart: https://github.com/nglar/ngTouchstart, instead of mousedown ngTouchend: https://github.com/nglar/ngTouchend, instead of mouseup

like image 140
Noshii Avatar answered Nov 04 '22 08:11

Noshii