Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

ngTouch: Swipe easily activates accidentally while selecting text #4090

Closed
cleercode opened this issue Sep 21, 2013 · 6 comments
Closed

ngTouch: Swipe easily activates accidentally while selecting text #4090

cleercode opened this issue Sep 21, 2013 · 6 comments

Comments

@cleercode
Copy link

I'd like to at least be able to disable the behavior for mouse events and only use it for touch events.

@ghost ghost assigned bshepherdson Sep 21, 2013
@jsteenkamp
Copy link

I'm seeing related issue - when using swipeRight I cannot select text (for example in a form textarea). Also don't see $event being passed with touch events as per docs.

@justechn
Copy link

I would also like the ability to disable this for mouse events. I am getting a lot of complaints from people who are trying to select text and instead it swipes.

@jstrength
Copy link

#7467

@petebacondarwin petebacondarwin modified the milestones: Backlog, ngTouch Overhaul Jan 26, 2016
@Narretz Narretz modified the milestones: ngTouch Overhaul, Backlog Sep 14, 2016
@jzatarain
Copy link

I'm seeing that the ngSwipe directive is working even if I'm not using a touch screen.
I tested in the plunkr provided in https://docs.angularjs.org/api/ngTouch/directive/ngSwipeRight
in chrome Version 62.0.3202.62 (Official Build) (64-bit)
Is this made on purpose or is it a bug?

@jzatarain
Copy link

Nvm, seems like using the 'ng-swipe-disable-mouse' attribute does the job, which I don't see in the documentation :o

@Narretz
Copy link
Contributor

Narretz commented Feb 1, 2018

I'm closing this issue since the ngTouch module will be deprecated in AngularJS 1.7.0, and we will not do any more work on it. This is because touch handling is a complex topic, and there are stand-alone libraries that are better equipped to handle all the nuances and edge cases. For example, https://hammerjs.github.io/, which is also used by Angular.

@Narretz Narretz closed this as completed Feb 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants