Directive to handle double click event for web application running on iOS Safari (it works on every browser, but was made because iOS Safari doesn't recognize dblclick event).
Use it exactly like ng-dblclick
directive by passing it a function to execute when event is triggered.
<div ios-dblclick="myMethod()"></div>
Get source file using bower or simply download it from Github.
bower install --save ios-dblclick
Include ios-dblclick.js
in your index.html
file.
<script src="bower_components/ios-dblclick/ios-dblclick.js"></script>
Then include iosDblclick as a dependency in your angular module.
angular.module('myApp', ['iosDblclick']);
Feel free to open issue or submit pull request to improve this directive !
This directive is published under MIT license, see LICENSE file.