Skip to content

Commit

Permalink
Refer to Gestures.recognizers consistently.
Browse files Browse the repository at this point in the history
  • Loading branch information
rictic committed Aug 3, 2017
1 parent 328ce59 commit 3555b45
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/utils/gestures.html
Original file line number Diff line number Diff line change
Expand Up @@ -337,19 +337,18 @@
if (handled.skip) {
return;
}
let recognizers = Gestures.recognizers;
// reset recognizer state
for (let i = 0, r; i < recognizers.length; i++) {
r = recognizers[i];
for (let i = 0, r; i < Gestures.recognizers.length; i++) {
r = Gestures.recognizers[i];
if (gs[r.name] && !handled[r.name]) {
if (r.flow && r.flow.start.indexOf(ev.type) > -1 && r.reset) {
r.reset();
}
}
}
// enforce gesture recognizer order
for (let i = 0, r; i < recognizers.length; i++) {
r = recognizers[i];
for (let i = 0, r; i < Gestures.recognizers.length; i++) {
r = Gestures.recognizers[i];
if (gs[r.name] && !handled[r.name]) {
handled[r.name] = true;
r[type](ev);
Expand Down

0 comments on commit 3555b45

Please sign in to comment.