ios-dblclick

1.0.1 • Public • Published

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 npm or simply download it from Github.

npm install --save ios-dblclick

Include ios-dblclick.js in your index.html file.

<script src="node_modules/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

Package Sidebar

Install

npm i ios-dblclick

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

4.22 kB

Total Files

4

Last publish

Collaborators

  • onemargaro