Skip to content

AngularJS directive to handle double click event on iOS Safari

License

Notifications You must be signed in to change notification settings

mrblackus/ios-dblclick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iosDblclick

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.

Usage

<div ios-dblclick="myMethod()"></div>

Installation

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']);

Contributing

Feel free to open issue or submit pull request to improve this directive !

License

This directive is published under MIT license, see LICENSE file.

Bitdeli Badge

About

AngularJS directive to handle double click event on iOS Safari

Resources

License

Stars

Watchers

Forks

Packages

No packages published