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

Commit 67f54b6

Browse files
authored
fix(ngTouch): deprecate the module and its contents
Closes #16427 Closes #16431
1 parent 3fc6843 commit 67f54b6

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

src/ngTouch/directive/ngSwipe.js

+10
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
* @ngdoc directive
77
* @name ngSwipeLeft
88
*
9+
* @deprecated
10+
* sinceVersion="1.7.0"
11+
*
12+
* See the {@link ngTouch module} documentation for more information.
13+
*
914
* @description
1015
* Specify custom behavior when an element is swiped to the left on a touchscreen device.
1116
* A leftward swipe is a quick, right-to-left slide of the finger.
@@ -42,6 +47,11 @@
4247
* @ngdoc directive
4348
* @name ngSwipeRight
4449
*
50+
* @deprecated
51+
* sinceVersion="1.7.0"
52+
*
53+
* See the {@link ngTouch module} documentation for more information.
54+
*
4555
* @description
4656
* Specify custom behavior when an element is swiped to the right on a touchscreen device.
4757
* A rightward swipe is a quick, left-to-right slide of the finger.

src/ngTouch/swipe.js

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
* @ngdoc service
77
* @name $swipe
88
*
9+
* @deprecated
10+
* sinceVersion="1.7.0"
11+
*
12+
* See the {@link ngTouch module} documentation for more information.
13+
*
914
* @description
1015
* The `$swipe` service is a service that abstracts the messier details of hold-and-drag swipe
1116
* behavior, to make implementing swipe-related directives more convenient.

src/ngTouch/touch.js

+7
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
*
1212
* See {@link ngTouch.$swipe `$swipe`} for usage.
1313
*
14+
* @deprecated
15+
* sinceVersion="1.7.0"
16+
* The ngTouch module with the {@link ngTouch.$swipe `$swipe`} service and
17+
* the {@link ngTouch.ngSwipeLeft} and {@link ngTouch.ngSwipeRight} directives are
18+
* deprecated. Instead, stand-alone libraries for touch handling and gesture interaction
19+
* should be used, for example [HammerJS](https://hammerjs.github.io/) (which is also used by
20+
* Angular).
1421
*/
1522

1623
// define ngTouch module

0 commit comments

Comments
 (0)