From ffc97fb9eeae702d7eb57b75a94f656e0b93886c Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 19 Mar 2015 15:43:22 -0400 Subject: [PATCH] rebuilt --- dist/ractive-events-tap.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/dist/ractive-events-tap.js b/dist/ractive-events-tap.js index 03bcf7f..bd664e8 100644 --- a/dist/ractive-events-tap.js +++ b/dist/ractive-events-tap.js @@ -9,9 +9,12 @@ var ractive_events_tap = tap; var DISTANCE_THRESHOLD = 5; // maximum pixels pointer can move before cancel - var TIME_THRESHOLD = 400;function tap(node, callback) { - return new TapHandler(node, callback); - }var TapHandler = function (node, callback) { + var TIME_THRESHOLD = 400; + function tap(node, callback) { + return new ractive_events_tap__TapHandler(node, callback); + } + + var ractive_events_tap__TapHandler = function ractive_events_tap__TapHandler(node, callback) { this.node = node; this.callback = callback; @@ -20,7 +23,7 @@ this.bind(node); }; - TapHandler.prototype = { + ractive_events_tap__TapHandler.prototype = { bind: function bind(node) { // listen for mouse/pointer events... if (window.navigator.pointerEnabled) { @@ -54,6 +57,7 @@ mousedown: function mousedown(event) { var _this = this; + if (this.preventMousedownEvents) { return; } @@ -116,6 +120,7 @@ touchdown: function touchdown() { var _this = this; + var touch = event.touches[0]; var x = touch.clientX;