Skip to content

Commit

Permalink
bump version to 0.1.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
ngryman committed Oct 1, 2014
1 parent dc7ea18 commit 3c9795c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# jQuery Finger [![Version](http://img.shields.io/badge/version-0.1.1-brightgreen.svg)](https://github.com/ngryman/jquery.finger#release-history)
# jQuery Finger [![Version](http://img.shields.io/badge/version-0.1.2-brightgreen.svg)](https://github.com/ngryman/jquery.finger#release-history)

[![Build Status](http://img.shields.io/travis/ngryman/jquery.finger.svg)](https://travis-ci.org/ngryman/jquery.finger)
[![Dependency Status](http://img.shields.io/gemnasium/ngryman/jquery.finger.svg)](https://gemnasium.com/ngryman/jquery.finger)
Expand All @@ -13,7 +13,7 @@ Very small (< 0.5kb gzipped), it is focused on **performance** and **KISS**, is

## Getting Started

Download the [production version][min] *(445 bytes gzipped)* or the [development version][max] *(4120 bytes)*.<br>
Download the [production version][min] *(454 bytes gzipped)* or the [development version][max] *(4269 bytes)*.<br>
You can also install it via [Jam] or [Bower].

[min]: https://raw.github.com/ngryman/jquery.finger/master/dist/jquery.finger.min.js
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery.finger",
"version": "0.1.1",
"version": "0.1.2",
"main": "dist/jquery.finger.js",
"ignore": [
".gitignore",
Expand Down
12 changes: 7 additions & 5 deletions dist/jquery.finger.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! jquery.finger - v0.1.1 - 2014-09-27
/*! jquery.finger - v0.1.2 - 2014-10-01
* https://github.com/ngryman/jquery.finger
* Copyright (c) 2014 Nicolas Gryman; Licensed MIT */

Expand Down Expand Up @@ -116,6 +116,8 @@

// for delegated events, the target may change over time
// this ensures we notify the right target and simulates the mouseleave behavior
while (event.target && event.target !== start.target)
event.target = event.target.parentNode;
if (event.target !== start.target) {
event.target = start.target;
stopHandler.call(this, $.Event(stopEvent + '.' + namespace, event));
Expand All @@ -134,18 +136,18 @@
// always clears press timeout
clearTimeout(timeout);

// ensures start target and end target are the same
if (event.target !== start.target) return;

// tap-like events
if (!motion && !cancel) {
// triggered only if targets match
if (!motion && !cancel && event.target === start.target) {
var doubleTap = prevEl === event.target && timeStamp - prevTime < Finger.doubleTapInterval;
evtName = doubleTap ? 'doubletap' : 'tap';
prevEl = doubleTap ? null : start.target;
prevTime = timeStamp;
}
// motion events
else {
// ensure last target is set the initial one
event.target = start.target;
if (dt < Finger.flickDuration) trigger(event, 'flick');
move.end = true;
evtName = 'drag';
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.finger.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion finger.jquery.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "finger",
"title": "jQuery Finger",
"version": "0.1.1",
"version": "0.1.2",
"description": "jQuery Finger unifies click and touch events by removing the 300ms delay on touch devices. It also provide a common set of events to handle basic gestures such as drag and pinch. Small (< 1kb gzipped), it is focused on performance, is well tested and ... also supports jQuery delegated events.",
"homepage": "https://github.com/ngryman/jquery.finger",
"bugs": "https://github.com/ngryman/jquery.finger/issues",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery.finger",
"version": "0.1.1",
"version": "0.1.2",
"description": "jQuery Finger unifies click and touch events by removing the 300ms delay on touch devices. It also provide a common set of events to handle basic gestures such as drag and pinch. Small (< 1kb gzipped), it is focused on performance, is well tested and ... also supports jQuery delegated events.",
"homepage": "https://github.com/ngryman/jquery.finger",
"keywords": [
Expand Down

0 comments on commit 3c9795c

Please sign in to comment.