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
10
votes
2 answers

Angular ng-swipe with youtube iframe

I'm trying to build simply slider with images and youtube videos. I want make it works fine on touch devices, so I want to use ng-swipe-* from angular's ngTouch module. Unfortunately swipe doesn't work over youtube's iframe. I tried to set lower…
akn
  • 3,712
  • 26
  • 43
6
votes
3 answers

Angular JS Touch and Swipe

I am very new to angular JS and working on a mobile application. As a part of it, I need to write a service that handles touch events like swipe-left, swipe-right, swipe-up and swipe down and I need to call back depending on which action is made.…
user3311330
  • 71
  • 1
  • 1
  • 2
5
votes
2 answers

AngularJS Click on TouchStart

Angular Touch ngTouch causes the click to occur on touch release. Is there a way to make the click happen on touch start? The fast-click directive below seems to do what I want on touchscreens, but it doesn't work with mouse…
benshope
  • 2,936
  • 4
  • 27
  • 39
4
votes
1 answer

How to disable ngTouch conditionally and fallback to ng-click

How can I use ngTouch but selectively disable it for some elements? That is, for certain elements I'd like to use the original ngClick directive instead of the one that ngTouch provides. Something like this:
Gil Birman
  • 35,242
  • 14
  • 75
  • 119
4
votes
1 answer

Why are multiple click events fired when using ngTouch?

I am building a mobile web app with Angular, and I'm trying to incorporate the ngTouch (angular-touch) module to speed up click events on mobile devices. Here is the app without ngTouch: http://lukasolson.github.io/n-spade-cards/ng-click/ Here is…
Lukas
  • 9,765
  • 2
  • 37
  • 45
4
votes
0 answers

ui-sref not working with ng-click (angular-touch) if used without jQuery

I have a hard time removing jQuery from our app. The main problem: a simple link combining ng-click with ui-sref: Link The result: ng-click fires, ui-sref does not. This only happens when…
scheffield
  • 6,618
  • 2
  • 30
  • 31
3
votes
1 answer

How to call a function multiple times till user releases a button in AngularJS

I have a random function that I call when the user press a button. I would like to keep running that function till the user releases the button. I found the mouse-down directive but it seems to not work for mobile. I also tried the code below using…
113408
  • 3,364
  • 6
  • 27
  • 54
3
votes
1 answer

Disable ng-touch on on specific location

I am using carousel from ui.bootstrap and for that i need to use ng-touch. When i inject my app with ngTouch it brakes some things, inputs in mobile can't be clicked. How can i inject specific controller, i have tried to make two different modules…
Honchar Denys
  • 1,408
  • 4
  • 29
  • 54
3
votes
0 answers

Show animation when ng-swipe

I want to show an animation (an arrow moving left or right depending on which direction the swipe is happening) when the user has started to swipe to either sides of the screen, that is the user has started the swipe but not yet completed the swipe.…
Temp O'rary
  • 5,366
  • 13
  • 49
  • 109
3
votes
0 answers

ngTouch don't work when i use ngRoute

When i add ngTouch to my app which use ngRoute that's not seems to work, but when i remove ngRoute it works... I don't know why var app = angular.module('app', ['ngTouch', 'ngRoute']).run(function()…
KimiBst
  • 41
  • 4
2
votes
1 answer

Angular ng-Touch swipe event fails on Windows 8.1 and Windows Phone Overflow

I'm currently using Angular 1.3.13, angular-touch 1.3.15, and Cordova 4.1.2 with the following code.
  • Swipe Me
  • Swipe Me
2
votes
1 answer

what is the use of ngTouch dependency in AngularJS?

I am a beginner in AngularJs programming,and I am not able to figure out what is the use of ngTouch in angularjs? I am asking this question because I had made a small website, which I assumed that will not work fine on tabs without the ngTouch…
r_goyal
  • 1,117
  • 1
  • 11
  • 20
2
votes
0 answers

ngTouch breaks forms/input fields

we have a hybrid Angular app which is experiencing the dreaded 300ms delay, even though it should be working (since the correct meta tags have been set). We tried getting around this issue by using the FastClick library and it worked for Safari on…
Matt
  • 3,820
  • 16
  • 50
  • 73
2
votes
1 answer

$swipe on child elements conflict with scroll and scroll stops working in AngularJS

I have a parent element to which I applied ng-swipe-right and ng-swipe-left. The swipe functionality works well. One of the element's child element has some content that overflows hence scroll gets automatically applied to it. BUT now, this scroll…
Temp O'rary
  • 5,366
  • 13
  • 49
  • 109
2
votes
2 answers
1
2 3