From f1fc93c9869b467339c2de61cd2c66261a9a7095 Mon Sep 17 00:00:00 2001 From: Eitan Isaacson Date: Thu, 5 Dec 2013 13:15:03 +0200 Subject: [PATCH] Bug 920946 - Introduce dwellend gesture to allow better touch typing. r=marcoz --- accessible/src/jsat/AccessFu.jsm | 1 + accessible/src/jsat/TouchAdapter.jsm | 2 ++ 2 files changed, 3 insertions(+) diff --git a/accessible/src/jsat/AccessFu.jsm b/accessible/src/jsat/AccessFu.jsm index 9bb36fda658e..c0cf612968c5 100644 --- a/accessible/src/jsat/AccessFu.jsm +++ b/accessible/src/jsat/AccessFu.jsm @@ -744,6 +744,7 @@ var Input = { this.contextAction('forward'); break; case 'exploreend1': + case 'dwellend1': this.activateCurrent(null, true); break; case 'swiperight2': diff --git a/accessible/src/jsat/TouchAdapter.jsm b/accessible/src/jsat/TouchAdapter.jsm index 87a680f8d6ab..761314efb39b 100644 --- a/accessible/src/jsat/TouchAdapter.jsm +++ b/accessible/src/jsat/TouchAdapter.jsm @@ -392,6 +392,8 @@ TouchPoint.prototype = { return {type: 'tap', x: this.startX, y: this.startY}; } else if (!this.done && duration == TouchAdapter.DWELL_THRESHOLD) { return {type: 'dwell', x: this.startX, y: this.startY}; + } else if (this.done && duration > TouchAdapter.DWELL_THRESHOLD) { + return {type: 'dwellend', x: this.startX, y: this.startY}; } }