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

fix(ngTouch): remove ngClick override #13852

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion angularFiles.js
Expand Up @@ -138,7 +138,6 @@ var angularFiles = {
'ngTouch': [
'src/ngTouch/touch.js',
'src/ngTouch/swipe.js',
'src/ngTouch/directive/ngClick.js',
'src/ngTouch/directive/ngSwipe.js'
],
'ngAria': [
Expand Down
296 changes: 0 additions & 296 deletions src/ngTouch/directive/ngClick.js

This file was deleted.

12 changes: 8 additions & 4 deletions src/ngTouch/touch.js
Expand Up @@ -7,12 +7,16 @@
*
* # ngTouch
*
* 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](http://jquerymobile.com/)).
* The `ngTouch` module provides the touch-event based {@link ngTouch.$swipe `$swipe`} directive.
*
* <div class="alert alert-info">
* Angular 1.5.0 has **removed** the override to the `ngClick` directive that eliminates the 300ms delay
* after a tap on mobile browsers. It was removed because the implementation was unreliable, and because
* the 300ms delay is on its way out on modern mobile browsers.
* If you need this behavior, consider using [FastClick](https://github.com/ftlabs/fastclick) or
* [Tappy!](https://github.com/filamentgroup/tappy/)
* </div>
*
* See {@link ngTouch.$swipe `$swipe`} for usage.
*
* <div doc-module-components="ngTouch"></div>
*
Expand Down