jquery.event.ue
Advanced tools
Comparing version 1.1.9 to 1.2.0
@@ -11,18 +11,22 @@ /* | ||
* Versions | ||
* 1.2.0 - ignore_class => ignore_select, now defaults to '' | ||
* 1.1.9 - Fixed ue-test.html demo to scale properly | ||
* 1.1.8 - Removed prevent default from non-ue events | ||
* 1.1.7 - Corrected desktop zoom motion description | ||
* 1.1.0-5 - No code changes. Updated npm keywords. Fixed typos. | ||
* Bumped version to represent maturity and stability. | ||
* 0.6.1 - Change px_radius from 5 to 10 pixels | ||
* 0.6.0 - Added px_tdelta_x and px_tdelta_y for deltas from start | ||
* - Fixed onheld and drag conflicts | ||
* 0.5.0 - Updated docs, removed cruft, updated for jslint, | ||
* updated test page (zoom) | ||
* 0.4.3 - Removed fatal execption possibility if originalEvent | ||
* is not defined on event object | ||
* 0.4.2 - Updated documentation | ||
* 0.3.2 - Updated to jQuery 1.9.1. | ||
* Confirmed 1.7.0-1.9.1 compatibility. | ||
* 0.3.1 - Change for jQuery plugins site | ||
* 0.3.0 - Initial jQuery plugin site release | ||
* - Replaced scrollwheel zoom with drag motion. | ||
* This resolved a conflict with scrollable areas. | ||
* 0.3.1 - Change for jQuery plugins site | ||
* 0.3.2 - Updated to jQuery 1.9.1. | ||
* Confirmed 1.7.0-1.9.1 compatibility. | ||
* 0.4.2 - Updated documentation | ||
* 0.4.3 - Removed fatal execption possibility if originalEvent | ||
* is not defined on event object | ||
* 0.5.0 - Updated docs, removed cruft, updated for jslint, | ||
* updated test page (zoom) | ||
* 0.6.0 - Added px_tdelta_x and px_tdelta_y for deltas from start | ||
* - Fixed onheld and drag conflicts | ||
* 0.6.1 - Default px_radius now 10 pixels | ||
* 1.1.0-5 - No code changes. Updated npm keywords. Fixed typos. | ||
* Bumped version to represent maturity and stability. | ||
* | ||
@@ -41,3 +45,3 @@ */ | ||
var | ||
$Special = $.event.special, // shortcut for special event | ||
$Special = $.event.special, // shortcut for special event | ||
motionMapMap = {}, // map of pointer motions by cursor | ||
@@ -52,6 +56,7 @@ isMoveBound = false, // flag if move handlers bound | ||
px_radius : 10, // 'distance' dragged before dragstart | ||
ignore_class : ':input', // 'not' suppress matching elements | ||
ignore_select : '', // selector of elements to ignore (e.g. :input) | ||
tap_time : 200, // millisecond max time to consider tap | ||
held_tap_time : 300 // millisecond min time to consider taphold | ||
}, | ||
callbackList = [], // global callback stack | ||
@@ -217,3 +222,3 @@ zoomMouseNum = 1, // multiplier for mouse zoom | ||
for ( idx = 0; idx < namespace_list.length; idx += 1 ) { | ||
for ( idx = 0; idx < namespace_list.length; idx++ ) { | ||
namespace_key = namespace_list[idx]; | ||
@@ -249,3 +254,3 @@ bound_ns_map[event_type][namespace_key] = true; | ||
for ( idx = 0; idx < namespace_list.length; idx += 1 ) { | ||
for ( idx = 0; idx < namespace_list.length; idx++ ) { | ||
namespace_key = namespace_list[idx]; | ||
@@ -364,6 +369,7 @@ if (bound_ns_map[event_type][namespace_key]) { | ||
// ignore on zoom | ||
if ( request_dzoom && ! bound_ns_map.uzoomstart ) { return; } | ||
// :input selector includes text areas | ||
if ( $target.is( option_map.ignore_class ) ) { return; } | ||
if ( $target.is( option_map.ignore_select ) ) { return; } | ||
@@ -370,0 +376,0 @@ // Prevent default only after confirming handling this event |
{ | ||
"name": "jquery.event.ue", | ||
"version": "1.1.9", | ||
"version": "1.2.0", | ||
"description": "Respond to Touch and Desktop events using the same handlers, including tap (click), long-press, drag, long-press-drag, pinch/mouse zoom. Used in commercial SPAs and featured in the best-selling book Single Page Web Applications - JavaScript end-to-end.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -169,8 +169,13 @@ # jquery.event.ue | ||
### Version 1.2.0 | ||
Changed default option key "ignore_class" to "ignore_select" | ||
and it now defaults to "" instead of ":input" | ||
### Version 1.1.9 | ||
Stopped preventDefault() from firing on events not controlled by the plugin. | ||
### Version 1.1.9 | ||
Updated tests to handle zooming correctly. | ||
### Versions 1.0.x | ||
### Version 1.1.8 | ||
Stopped preventDefault() from firing on events not controlled by the plugin. | ||
### Versions 1.1.0-7 | ||
**No code changes.** Updated npm keywords. Fixed typos. | ||
@@ -177,0 +182,0 @@ Bumped version number to represent maturity and stability. |
49233
669
225