Skip to content

Commit

Permalink
v0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Mar 15, 2014
1 parent cacac8a commit 096316a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Anytime you will use a Tocca.js event the callback function will receive a speci
- <code>y</code> { Int }: latest y position of pointer at the end of the event
- <code>originalEvent</code> { Object }: the original javascript native event that has been triggered
- <code>distance</code>: this property is available only for the swipe events
- <code>x</code> { Int }: the x absolute difference between the beginning and the end of the swipe gesture
- <code>x</code> { Int }: the x absolute difference between the beginning and the end of the swipe gesture
- <code>y</code> { Int }: the y absolute difference between the beginning and the end of the swipe gesture

Examples:
Expand Down Expand Up @@ -115,6 +115,9 @@ On the old browsers all the Tocca.js events cannot be triggered.

## Changelog

### 0.0.8
- 'touchcancel' event removed to fix and android issue on page scroll

### 0.0.7
- nothing important (just a workaround to fix the tests on the motherfucker Phantomjs)

Expand All @@ -123,7 +126,7 @@ On the old browsers all the Tocca.js events cannot be triggered.
- added: new JUST_ON_TOUCH_DEVICES option to block all the Tocca.js events on the no-touch devices

### 0.0.5
- tap precision option included
- tap precision option included

### 0.0.4
- <code>dpltap</code> renamed <code>dbltap</code>
Expand Down
6 changes: 3 additions & 3 deletions Tocca.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
*
* Version: 0.0.7
* Version: 0.0.8
* Author: Gianluca Guarini
* Contact: [email protected]
* Website: http://www.gianlucaguarini.com/
Expand Down Expand Up @@ -49,7 +49,7 @@
},
sendEvent = function(elm, eventName, originalEvent, data) {
var customEvent = doc.createEvent('Event');

data = data || {};
data.x = currX;
data.y = currY;
Expand Down Expand Up @@ -104,7 +104,7 @@
}, taptreshold);

});
setListener(doc, isTouch ? 'touchend touchcancel' : 'mouseup', function(e) {
setListener(doc, isTouch ? 'touchend' : 'mouseup', function(e) {
var eventsArr = [],
deltaY = cachedY - currY,
deltaX = cachedX - currX;
Expand Down
4 changes: 2 additions & 2 deletions Tocca.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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Tocca.js",
"version": "0.0.7",
"version": "0.0.8",
"description": "Super lightweight script (1kb) to detect via Javascript events like 'tap' 'dbltap' 'swipeup' 'swipedown' 'swipeleft' 'swiperight' on any kind of device.",
"main": "Gruntfile.js",
"directories": {
Expand Down

0 comments on commit 096316a

Please sign in to comment.