<commit_before># TAP.JS 

1Kb library to handle user interactions such as mouse, touch and pointer events with one unified event `tap`. 

No need to detect what kind of events are supported, no need to write a lot of code, just handle user interactions in the intuitive way.

It is needed because the majority browsers has ~300ms delay between touch/pointer events and click. Every milisecond does really matter!  

## Installation

If you are using bower it is easy to install `tap`:

```
bower install tap
```

In other case you can simply [download the library](http://raw.github.com/pukhalski/tap.js/dist/tap.min.js).

Include it to your html file (it does not matter where — in `<head>` or not):
```
<script src="bower_components/tap/dist/tap.min.js"></script>
```

## Usage

Use tap in the way you already know:

```
  document.getElementById('any-element').addEventListener('tap', function (e) {
    // All the magic happens here
  });
```

### With jQuery

```
$('#any-element').on('tap', function (e) {
  // All the magic happens here
});
```

### With Zepto

```
$('#any-element').on('tap', function (e) {
  // All the magic happens here
});
```

### With Dojo

```
var myButton = dojo.byId('any-element');
dojo.connect(myButton, 'tap', function(e){
    // All the magic happens here
});
```

### With YUI

```
YUI().use('event', 'node', function (Y) {
  Y.one('#any-element').on('tap', function(e) {
    // All the magic happens here
  });
});
```

### With ExtJS

```
Ext.get('any-element').on('tap', function (e) {
  // All the magic happens here
});
```

## Browser Support

Tap was tested on the wide range of devices:

- 

## Known issues

The one most important well-known issue is that you cannot prevent propaganation/bubbling of `click` (or any other) event using `tap` event handler.

## LICENSE
<commit_msg>README codeblocks colored<commit_after># TAP.JS 

1Kb library to handle user interactions such as mouse, touch and pointer events with one unified event `tap`. 

No need to detect what kind of events are supported, no need to write a lot of code, just handle user interactions in the intuitive way.

It is needed because the majority browsers has ~300ms delay between touch/pointer events and click. Every milisecond does really matter!  

## Installation

If you are using bower it is easy to install `tap`:

```
bower install tap
```

In other case you can simply [download the library](http://raw.github.com/pukhalski/tap.js/dist/tap.min.js).

Include it to your html file (it does not matter where — in `<head>` or not):
```html
<script src="bower_components/tap/dist/tap.min.js"></script>
```

## Usage

Use tap in the way you already know:

```javascript
  document.getElementById('any-element').addEventListener('tap', function (e) {
    // All the magic happens here
  });
```

### With jQuery

```javascript
$('#any-element').on('tap', function (e) {
  // All the magic happens here
});
```

### With Zepto

```javascript
$('#any-element').on('tap', function (e) {
  // All the magic happens here
});
```

### With Dojo

```javascript
var myButton = dojo.byId('any-element');
dojo.connect(myButton, 'tap', function(e){
    // All the magic happens here
});
```

### With YUI

```javascript
YUI().use('event', 'node', function (Y) {
  Y.one('#any-element').on('tap', function(e) {
    // All the magic happens here
  });
});
```

### With ExtJS

```javascript
Ext.get('any-element').on('tap', function (e) {
  // All the magic happens here
});
```

## Browser Support

Tap was tested on the wide range of devices:

- 

## Known issues

The one most important well-known issue is that you cannot prevent propaganation/bubbling of `click` (or any other) event using `tap` event handler.

## LICENSE

{'fraction_non_alphanumeric': 0.14890198178896624, 'fraction_numerical': 0.0021424745581146223, 'mean_word_length': 3.9209486166007905, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6375240', 'n_tokens_mistral': 1212, 'n_tokens_neox': 1133, 'n_words': 445}