Skip to content

Commit

Permalink
update jquery-touch-events
Browse files Browse the repository at this point in the history
  • Loading branch information
tkuther committed Feb 25, 2017
1 parent 695e415 commit ca22ba9
Show file tree
Hide file tree
Showing 12 changed files with 2,769 additions and 54 deletions.
10 changes: 5 additions & 5 deletions components/jquery-touch-events/.bower.json
@@ -1,6 +1,6 @@
{
"name": "jquery-touch-events",
"version": "1.0.5",
"version": "1.0.8",
"main": "src/jquery.mobile-events.js",
"ignore": [
"bower.json"
Expand All @@ -9,14 +9,14 @@
"jquery": ">=1.7.0"
},
"homepage": "https://github.com/benmajor/jQuery-Touch-Events",
"_release": "1.0.5",
"_release": "1.0.8",
"_resolution": {
"type": "version",
"tag": "1.0.5",
"commit": "287e767951ecea9f996197f6a56d4fcf99f3cf9c"
"tag": "1.0.8",
"commit": "e16041cbb359d1a53d828278dd78ca658c02ba33"
},
"_source": "https://github.com/benmajor/jQuery-Touch-Events.git",
"_target": "^1.0.5",
"_target": "^1.0.8",
"_originalSource": "jquery-touch-events",
"_direct": true
}
30 changes: 26 additions & 4 deletions components/jquery-touch-events/README.md
Expand Up @@ -23,8 +23,19 @@ As explained, the events are each triggered by native touch events, or alternati

After almost 2 years in public beta, I am pleased to announce that the library is now officially launched as **version 1.0.0**. I'll be updating the version history over time with digests of fixes, features and improvements:

+ **Version 1.0.5** (2015-11-13
+ Fixed a major bug where the reproted `offset` position of events was incorrect when inside of a parent element.
+ **Version 1.0.8** (2017-02-01)
+ Fixes a bug where certain instances of Chrome on touch devices did not correctly fire events.
+ Added license info to minified script.

+ **Version 1.0.7** (2017-02-01)
+ Added threshold support for `taphold`

+ **Version 1.0.6** (2016-11-16)
+ Added slop factor for `singletap`
+ Fixed a bug where `offset()` was sometimes called on `null` (instead of `window`).

+ **Version 1.0.5** (2015-11-13)
+ Fixed a major bug where the reported `offset` position of events was incorrect when inside of a parent element.

+ **Version 1.0.4** (2015-11-12)
+ Regressed from `MSPointerEvent` for compatibility with IE11 and Edge
Expand Down Expand Up @@ -57,13 +68,19 @@ Once you have downloaded the JS files from the master branch, you should include
<script type="text/javascript" src="path/to/jquery.mobile-events.min.js"></script>
```

The awesome guys over at cdnjs have kindly added the library to their CDN so you can include it as follows directly into your application:

```
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-touch-events/1.0.5/jquery.mobile-events.js"></script>
```

Alternatively, you can also install jQuery-touch-events using Bower as follows:

```
$ bower install jquery-touch-events
```

Alternatively, you can also install jQuery-touch-events using NPM as follows:
jQuery Touch Events can also be installed using NPM as follows:

```
$ npm install git+https://github.com/benmajor/jQuery-Touch-Events.git
Expand Down Expand Up @@ -220,7 +237,7 @@ Each event provides different callback data. The following shows the numerous da

`yAmount` - number of pixels the swipe occupied on the Y-axis (returned regardless of direction).

`startEvent` - Object containing the same data as a `tap` event, but captured when swiping begins.
`startEvnt` - Object containing the same data as a `tap` event, but captured when swiping begins.

`endEvent` - Object containing the same data as a `tap` event, but captured when swiping is complete.

Expand All @@ -236,6 +253,11 @@ The value you define is the difference in pixels that the user must move before

``data-ythreshold`` defines the vertical threshold.

**Update as of 1.0.7:**
Following requests from users and contributors, as of 1.0.7 it is now possible to also define the `doubletap` threshold via jQuery's `data-` attributes as follows:

``data-threshold`` defines the amount of time (in milliseconds) after which the `doubletap` event is fired on the target element.

## 7. Utility Functions:

In addition to the numerous additional events that are provided, the library also includes a number of utility functions that can be used to further leverage the power of native events within your website or application. These utility functions can be used for unifying basic events, such as `tapstart` or `mousedown`.
Expand Down
2 changes: 1 addition & 1 deletion components/jquery-touch-events/bower.json
@@ -1,6 +1,6 @@
{
"name": "jquery-touch-events",
"version": "1.0.5",
"version": "1.0.7",
"main": "src/jquery.mobile-events.js",
"ignore": [
"bower.json"
Expand Down
2 changes: 1 addition & 1 deletion components/jquery-touch-events/package.json
@@ -1,6 +1,6 @@
{
"name": "jquery-touch-events",
"version": "1.0.5",
"version": "1.0.7",
"description": "Polyfill to remove click delays on browsers with touch UIs.",
"maintainers": [
{
Expand Down

0 comments on commit ca22ba9

Please sign in to comment.