{"_id":"tapjs","_rev":"7-6f384044be11bdfa5ea18d55a3368ad5","name":"tapjs","description":"`Tap` is a Javascript library for easy unified handling of user interactions such as mouse, touch and pointer events.","dist-tags":{"latest":"1.0.9"},"versions":{"1.0.5":{"name":"tapjs","version":"1.0.5","devDependencies":{"grunt":"latest","grunt-contrib-concat":"^0.4.0","grunt-contrib-uglify":"^0.4.0"},"description":"`Tap` is a Javascript library for easy unified handling of user interactions such as mouse, touch and pointer events.","main":"dist/tap.js","dependencies":{},"repository":{"type":"git","url":"https://github.com/pukhalski/tap.git"},"keywords":["tap","touch","delay","fast","click","events","pointer","events","mobile"],"author":{"name":"Ilya Pukhalski","email":"ilya@pukhalski.com","url":"http://pukhalski.com/"},"license":"MIT","bugs":{"url":"https://github.com/pukhalski/tap/issues"},"homepage":"https://github.com/pukhalski/tap","gitHead":"2d8d0b69273c48a48a616eec5d0252f6656b876a","_id":"tapjs@1.0.5","scripts":{},"_shasum":"e33ed6b0a4300ee429133e51c1f4bdc1f11f7c18","_from":".","_npmVersion":"2.1.2","_nodeVersion":"0.10.26","_npmUser":{"name":"pukhalski","email":"swedenxpower@gmail.com"},"dist":{"shasum":"e33ed6b0a4300ee429133e51c1f4bdc1f11f7c18","tarball":"https://registry.npmjs.org/tapjs/-/tapjs-1.0.5.tgz","integrity":"sha512-+c93Mc80LRWqOjXzVfWWlfmaw/mexwOqXGPr7wTuFQPkI90ZVglYF8Ir51DNJ7fPkuwRJ6ykGx0qpQRePpNIgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDK6cuT8Fdi5cMfz2u4E/RBUbC7dGYOlL6kr0iTU3xFJAIgIuNM65P2CoOFrcFcJLyYNrRNcXmhzvH2XrfOxY8m/Bk="}]},"maintainers":[{"name":"pukhalski","email":"swedenxpower@gmail.com"}]},"1.0.6":{"name":"tapjs","version":"1.0.6","devDependencies":{"grunt":"latest","grunt-contrib-concat":"^0.4.0","grunt-contrib-uglify":"^0.4.0"},"description":"`Tap` is a Javascript library for easy unified handling of user interactions such as mouse, touch and pointer events.","main":"dist/tap.js","dependencies":{},"repository":{"type":"git","url":"https://github.com/pukhalski/tap.git"},"keywords":["tap","touch","delay","fast","click","events","pointer","events","mobile"],"author":{"name":"Ilya Pukhalski","email":"ilya@pukhalski.com","url":"http://pukhalski.com/"},"license":"MIT","bugs":{"url":"https://github.com/pukhalski/tap/issues"},"homepage":"https://github.com/pukhalski/tap","gitHead":"b5b767cc8c31dade0835d820e3530dd1ebdc8837","_id":"tapjs@1.0.6","scripts":{},"_shasum":"4e953548a0190be8448d73d8e8d7ad7fbac27c84","_from":".","_npmVersion":"2.1.2","_nodeVersion":"0.10.26","_npmUser":{"name":"pukhalski","email":"swedenxpower@gmail.com"},"dist":{"shasum":"4e953548a0190be8448d73d8e8d7ad7fbac27c84","tarball":"https://registry.npmjs.org/tapjs/-/tapjs-1.0.6.tgz","integrity":"sha512-Hc/VZ88XdLY7/AOt0adwb1NQ+/oUTOZWavRTxqHAY4IeN8ah9F1x1CghLS0MakzG4+eavnav8ryfNeZkj6adSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBHHTU1uNjrxJZJy2jqw6ewg06Yw5exsyB+R1zQElj95AiEAviN7H75XfwMOzexTbD7Ud1tzEaFBIceUSbOXh9UBdNk="}]},"maintainers":[{"name":"pukhalski","email":"swedenxpower@gmail.com"}]},"1.0.7":{"name":"tapjs","version":"1.0.7","devDependencies":{"grunt":"latest","grunt-contrib-concat":"^0.4.0","grunt-contrib-uglify":"^0.4.0","jscs":"^1.13.1"},"description":"`Tap` is a Javascript library for easy unified handling of user interactions such as mouse, touch and pointer events.","main":"dist/tap.js","dependencies":{},"scripts":{"test":"jscs src/*"},"repository":{"type":"git","url":"git+https://github.com/pukhalski/tap.git"},"keywords":["tap","touch","delay","fast","click","events","pointer","events","mobile"],"author":{"name":"Ilya Pukhalski","email":"ilya@pukhalski.com","url":"http://pukhalski.com/"},"license":"MIT","bugs":{"url":"https://github.com/pukhalski/tap/issues"},"homepage":"https://github.com/pukhalski/tap","gitHead":"a44f72d82feb96a307a7f522747a6298f46133d2","_id":"tapjs@1.0.7","_shasum":"bd446faa2bfd38578e3ed57720e52f91efb098da","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"pukhalski","email":"swedenxpower@gmail.com"},"dist":{"shasum":"bd446faa2bfd38578e3ed57720e52f91efb098da","tarball":"https://registry.npmjs.org/tapjs/-/tapjs-1.0.7.tgz","integrity":"sha512-Uq274d6ccRZg3cafpyK5R+0R5b4J52nPtUp/bzsT4s9VaWXt7vCjdV/apQimabMwkOh8wbv+/WGA5c/4gzvKrw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC0I4C45/ZguSXqnbAEkB9aXqRkrpehhW5QmDYBlfV4vAiEA9DkQ2Lc+G9hWYh5OolixmN6lXXqOPVlfogokRkZanFY="}]},"maintainers":[{"name":"pukhalski","email":"swedenxpower@gmail.com"},{"name":"ezhlobo","email":"evgen.zhlobo@gmail.com"}]},"1.0.9":{"name":"tapjs","version":"1.0.9","devDependencies":{"grunt":"latest","grunt-contrib-concat":"^0.4.0","grunt-contrib-uglify":"^0.4.0","jscs":"^1.13.1"},"description":"`Tap` is a Javascript library for easy unified handling of user interactions such as mouse, touch and pointer events.","main":"dist/tap.js","dependencies":{},"scripts":{"test":"jscs src/*"},"repository":{"type":"git","url":"git+https://github.com/pukhalski/tap.git"},"keywords":["tap","touch","delay","fast","click","events","pointer","events","mobile"],"author":{"name":"Ilya Pukhalski","email":"ilya@pukhalski.com","url":"http://pukhalski.com/"},"license":"MIT","bugs":{"url":"https://github.com/pukhalski/tap/issues"},"homepage":"https://github.com/pukhalski/tap","gitHead":"6c4dc01d836aca51bd9c5ed69025d0575110cf21","_id":"tapjs@1.0.9","_shasum":"6c9ff48dd3e5f9a902ec6880699fed0d5facc678","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"pukhalski","email":"swedenxpower@gmail.com"},"dist":{"shasum":"6c9ff48dd3e5f9a902ec6880699fed0d5facc678","tarball":"https://registry.npmjs.org/tapjs/-/tapjs-1.0.9.tgz","integrity":"sha512-au7MlF/WFOAkxQcUZGvAhE+rcNqWIaziTCu+gt7u8gk51hLRnw/ZNNkKQQgwITg9Itk5qPKGfmf/7zUk2QqhNg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCqctZT/0T0JTi2s42sq6Qi2UbDws6gtc9psnzMDqgnAIgHfqjZYTy0qC5XBXvcb4wh96/7XsJ7n+8hz2eJjPAe84="}]},"maintainers":[{"name":"pukhalski","email":"swedenxpower@gmail.com"},{"name":"ezhlobo","email":"evgen.zhlobo@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tapjs-1.0.9.tgz_1491725414922_0.004287271061912179"}}},"readme":"# TAP.JS\n\n`Tap` is a Javascript library for easy unified handling of user interactions such as mouse, touch and pointer events.\n\n* No need to detect what kind of events are supported, `Tap` handles this for you\n* Small distribution size of 1Kb\n* Use fastest event types supported (majority of browsers has ~300ms delay between touch/pointer events and click). Every millisecond does really matter!\n\n## Installation\n\nIf you are using Bower:\n\n```\nbower install tap\n```\n\nFor npm users:\n\n```\nnpm install tapjs\n```\n\nOtherwise just [download the library](https://raw.githubusercontent.com/pukhalski/tap/master/dist/tap.min.js).\n\nInclude it anywhere in your html file (it does not matter where — in `<head>` or not):\n```html\n<script src=\"bower_components/tap/dist/tap.min.js\"></script>\n```\n\n## Usage\n\nUsing `Tap` is super easy. Just handle the 'tap' event in a way you are familiar with:\n\n```javascript\ndocument.getElementById('any-element').addEventListener('tap', function (e) {\n    // All the magic happens here\n});\n```\n\n### With jQuery\n\n```javascript\n$('#any-element').on('tap', function (e) {\n    // All the magic happens here\n});\n```\n\n### With Zepto\n\n```javascript\n$('#any-element').on('tap', function (e) {\n    // All the magic happens here\n});\n```\n\n### With Dojo\n\n```javascript\nvar myButton = dojo.byId('any-element');\ndojo.connect(myButton, 'tap', function(e){\n    // All the magic happens here\n});\n```\n\n### With YUI\n\n```javascript\nYUI().use('event', 'node', function (Y) {\n    Y.one('#any-element').on('tap', function(e) {\n        // All the magic happens here\n    });\n});\n```\n\n### With ExtJS\n\n```javascript\nExt.get('any-element').on('tap', function (e) {\n    // All the magic happens here\n});\n```\n\n### With Meteor\n\nFirst, install Meteor package:\n\n`meteor add jimbog:tap`\n\nThen, the tap event is used just like any other event in Meteor, here is an example for\nan anchor element:\n\n```javascript\nTemplate.MyTemplate.events({\n    'tap a': function(evt, tmpl){\n        evt.preventDefault();\n        console.log('you tapped the link');\n    }\n})\n```\n\n### With Angular\n\nJust add the code below or `dist/tap.angular.js` to your project, and use `ng-tap` insted of `ng-click`. Do not forget add `ngTap` as a dependency.\n\n```javascript\nangular.module('ngTap', []).directive('ngTap', function() {\n    return function(scope, element, attrs) {\n        element.bind('tap', function() {\n            scope.$apply(attrs['ngTap'], element);\n        });\n    };\n});\n```\n\n### With Knockout\n\n`tap` is not in the list of known events for Knockout, so use custom event binding to handle `tap` event:\n\n```html\n<button data-bind=\"event: {tap: onAddToCart}\">Add to cart</button>\n```\n\n## Browser Support\n\nTap was tested on the wide range of devices:\n\n* HTC T9295\n* iPhone 4, 5s\n* HTC Inspire 4G\n* Motorola Xoom\n* Nexus 4\n* Nexus 5\n* BlackBerry Bold 9800\n* Acer S7\n* Nokia Lumia 825\n* Nokia Lumia 800\n\nAnd browsers:\n\n* Android Browser 2+\n* BlackBerry Browser 6+\n* Chrome 31+\n* Firefox for Android\n* Firefox 24+\n* IE 9+\n* Mobile Chrome\n* Mobile Safari 5+\n* Opera 12+\n* Opera Mini\n* Safari 5+\n\nIt doesn't mean that all other platforms and browsers (or older versions of them) are not supported.\n\n## LICENSE\n\nTap is distributed under MIT license. Enjoy!\n\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/pukhalski/tap/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","maintainers":[{"name":"pukhalski","email":"swedenxpower@gmail.com"},{"name":"ezhlobo","email":"evgen.zhlobo@gmail.com"}],"time":{"modified":"2022-06-27T03:53:44.985Z","created":"2015-05-12T11:23:54.936Z","1.0.5":"2015-05-12T11:23:54.936Z","1.0.6":"2015-05-12T11:30:16.680Z","1.0.7":"2015-06-16T22:14:56.605Z","1.0.9":"2017-04-09T08:10:16.952Z"},"homepage":"https://github.com/pukhalski/tap","keywords":["tap","touch","delay","fast","click","events","pointer","events","mobile"],"repository":{"type":"git","url":"git+https://github.com/pukhalski/tap.git"},"author":{"name":"Ilya Pukhalski","email":"ilya@pukhalski.com","url":"http://pukhalski.com/"},"bugs":{"url":"https://github.com/pukhalski/tap/issues"},"license":"MIT","readmeFilename":"README.md"}