From 47328486808bf60acc3058cd09eff7a2962babc3 Mon Sep 17 00:00:00 2001 From: "Scott J. Miles" Date: Mon, 12 Aug 2013 15:23:13 -0700 Subject: [PATCH 1/4] s/Loader/PolymerLoader --- pointergestures.js | 4 ++-- tools | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pointergestures.js b/pointergestures.js index dad99b7..f79342a 100644 --- a/pointergestures.js +++ b/pointergestures.js @@ -34,9 +34,9 @@ document.write(''); } - if (!window.Loader) { + if (!window.PolymerLoader) { var path = basePath + 'tools/loader/loader.js'; document.write(''); } - document.write(''); + document.write(''); })(); diff --git a/tools b/tools index 313f752..03ce077 160000 --- a/tools +++ b/tools @@ -1 +1 @@ -Subproject commit 313f7524ce37689ebfb60c81f7bda721535467cf +Subproject commit 03ce077cc6676eda5d87baa185a1519c273430c5 From b6006f499bd78a98c615637ee3f9d15fb72c240c Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Tue, 13 Aug 2013 14:02:42 -0700 Subject: [PATCH 2/4] Easier to understand tracking demo --- samples/track/index.html | 95 +++++++++++++++------------------------- 1 file changed, 36 insertions(+), 59 deletions(-) diff --git a/samples/track/index.html b/samples/track/index.html index 1179b6c..acaa04b 100644 --- a/samples/track/index.html +++ b/samples/track/index.html @@ -2,77 +2,54 @@ - Track sample - + PointerGestures Delta Tracking + - -
-
-
-
-
-
-
-
-
-
+ + +
+
+
+ From d2af0f91584d289d7ca488a655a23b74bcf1a9db Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Tue, 13 Aug 2013 14:02:58 -0700 Subject: [PATCH 3/4] Only enqueue pointer events for gestures if the pointer is down --- src/dispatcher.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dispatcher.js b/src/dispatcher.js index 047b119..1612a99 100644 --- a/src/dispatcher.js +++ b/src/dispatcher.js @@ -51,7 +51,8 @@ return; } var type = inEvent.type, fns; - if (fns = this.handlers[type]) { + // only trigger gestures if the pointer is down + if (inEvent.pressure && (fns = this.handlers[type])) { this.makeQueue(fns, inEvent); } this.handledEvents.set(inEvent, true); From a5ec6c5ffabfc80a450d7bd80d66e4584145c1da Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Tue, 13 Aug 2013 17:01:19 -0700 Subject: [PATCH 4/4] Revert "Only enqueue pointer events for gestures if the pointer is down" This reverts commit d2af0f91584d289d7ca488a655a23b74bcf1a9db. IE 10 reports pressure: 0 and buttons: 0 on MSPointerUp, causing the recognizers to never get pointerup --- src/dispatcher.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dispatcher.js b/src/dispatcher.js index 1612a99..047b119 100644 --- a/src/dispatcher.js +++ b/src/dispatcher.js @@ -51,8 +51,7 @@ return; } var type = inEvent.type, fns; - // only trigger gestures if the pointer is down - if (inEvent.pressure && (fns = this.handlers[type])) { + if (fns = this.handlers[type]) { this.makeQueue(fns, inEvent); } this.handledEvents.set(inEvent, true);