Questions tagged [angularjs-ng-touch]

The ngTouch module provides touch events and other helpers for touch-enabled devices. The implementation is based on jQuery Mobile touch event handling (jquerymobile.com).

From Angularjs documentation:
The ngTouch module provides touch events and other helpers for touch-enabled devices. The implementation is based on jQuery Mobile touch event handling (jquerymobile.com).

See $swipe for usage.

43 questions
1
vote
3 answers

Angular ng-click function not called on touchscreen devices

I have a directive which contains an iScroll element, which is built with li from an ng-repeat:
Jack Wild
  • 2,072
  • 6
  • 27
  • 39
1
vote
1 answer

How can I use $swipe.bind (ngTouch) on an element inside an ngInclude?

I have an element that I use $swipe.bind (from ngTouch) on to connect some event handlers inside a controller constructor: $swipe.bind($(element_selector), {'move': dragMoveHandler}); I moved that element into an ngInclude, but now the controller…
James
  • 773
  • 2
  • 18
  • 29
1
vote
0 answers

Different swipe animations based on direction of swipe in AngularJS

I've created a really basic version of what I've got so far in a JSFiddle, which can be found here: http://jsfiddle.net/hamchapman/a97Yq/5/ This is the code in case the JSFiddle doesn't work: // ** view **
hamchapman
  • 2,901
  • 4
  • 22
  • 37
0
votes
2 answers

AngularJS - ng-click + ng-touch not working properly on mobile

I have both ng-click and ng-touch on a button used for search. On desktop the search and the functions called in ng-click work properly. On mobile on the other side the search button stops working because of the ng-click I think. I there a solution…
0
votes
1 answer

Angular JS Validations shows issue after submit form and reset model value

I have login form,i clear the model if username or password is wrong, when i submit form model value is cleared, but textbox validation message is show. Here is my code. login.html
Kirit
  • 405
  • 3
  • 18
0
votes
1 answer

angularJS ngTouch - can't get relative coordinates

using ngClick i am easily able to get the relative click coordinates from event.offsetX. however using ngTouch there seems to be no obvious way of doing this. i've inspected the event.originalEvent.changedTouches[] array thoroughly but all of the…
jpro
  • 384
  • 1
  • 3
  • 13
0
votes
1 answer

AngularJS touchmove on multiple items

I have a list of items and when I move my finger over each then I want to get the id for example of each item. It works with a mouse but not with touch. I'm using this lib: https://github.com/nglar/ngTouch HTML:

item :…

Ahmed Karmous
  • 373
  • 2
  • 10
  • 25
0
votes
1 answer

ng-submit not firing with angular-touch / touch events

I have a weird issue where touch events are not firing ng-submit OR ng-click (in chrome device dev tools). Chrome dev tools simulates touchstart/touchend events, so I'm not sure why this wouldn't be working. It works fine on desktop. Given the…
0
votes
1 answer

rotate image while swipe is in progress using angular ng-swipe-left and ng-swipe-right

I'm using angular's ng-swipe-left and ng-swipe-right to catch swipe event (in touch). I'm trying to make an image rotate according to the swipe speed and diraction while swipe is in progress. The problem is that I'm able to catch the event only when…
0
votes
1 answer

ng-click on body breaks links and input fields on mobile with ngTouch

Not sure if anybody can help me here, I will probably have to come up with something different but I wanted to sound this issue since I didn't find anything like that here. I have an app-like website with swipable menu, and I want it to go away…
0
votes
0 answers

Phonegap / Cordova + Talkback resulting on actions being fired twice

I'm working on an App with Phonegap + AngularJS and when i touch on any item on screen, the ScreenReader speaks twice. I'm on android 4.4.2 with cordova + AngularJS = ngTouch. Have Someone had this same problem? On iOS with VoiceOver active…
0
votes
0 answers

pure Angular js image gallery swipe to next image

UPDATE: I changed my code (based on this example... http://www.script-tutorials.com/photo-gallery-with-angularjs-and-css3/) and now swiping right works, but swiping left doesn't I created a controller for an image gallery and managed to get the main…
0
votes
3 answers

angularjs, Scope not updating across functions - with ngTouch

I have a controller with such: $scope.myVar = 0; $scope.back = function () { $scope.myVar--; }; $scope.next = function () { $scope.myVar++; }; If next() (with ngClick) is called 3 times, we get: //1 //2 //3 but if back() (with…
Elliot
  • 13,580
  • 29
  • 82
  • 118
1 2
3