Skip to content

Commit a64c02c

Browse files
committed
[UX] Improved gesture calibration.
1 parent 22fdc7c commit a64c02c

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/content/gesture.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@
276276
const { directions } = metrics;
277277
console.debug("Directions", active, directions, metrics, e); // DEV_ONLY
278278
if (directions.length < 1) {
279+
setActive(true);
279280
return;
280281
}
281282
if (directions[0] != -1 || directions.length > 3) {
@@ -293,11 +294,8 @@
293294
}
294295
}
295296

296-
if (active) {
297-
e.preventDefault();
298-
} else {
299-
setActive(true);
300-
}
297+
e.preventDefault();
298+
301299
drawPath(metrics);
302300
};
303301

0 commit comments

Comments
 (0)