[Pkg-mozext-commits] [firegestures] 01/13: fix #125 'Close Tab' command ignores 'Stay on Page' prompt

David Prévot taffit at moszumanska.debian.org
Tue May 17 15:31:02 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository firegestures.

commit 056974fb3db41e166046ad1205ec6270bbd5efdb
Author: Gomita <gomita at xuldev.org>
Date:   Sat Apr 16 10:53:07 2016 +0900

    fix #125 'Close Tab' command ignores 'Stay on Page' prompt
---
 components/xdGestureHandler.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/components/xdGestureHandler.js b/components/xdGestureHandler.js
index a83af59..0184a95 100644
--- a/components/xdGestureHandler.js
+++ b/components/xdGestureHandler.js
@@ -571,14 +571,16 @@ xdGestureHandler.prototype = {
 			this._eraseTrail();
 		// don't call onMouseGesture after events sequence: mousedown > minimal mousemove > mouseup
 		if (this._directionChain) {
-			this._gestureObserver.onMouseGesture(event, this._directionChain);
+			// reset direction chain before calling onMouseGesture to fix issue#125
+			var directionChain = this._directionChain;
+			this._directionChain = "";
+			this._gestureObserver.onMouseGesture(event, directionChain);
 			// suppress immediate context menu after finishing mouse gesture with right-button
 			// don't suppress mouse gesture with left or middle button
 			this._suppressContext = true;
 			this._shouldFireContext = false;
 		}
 		this.sourceNode = null;
-		this._directionChain = "";
 	},
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firegestures.git



More information about the Pkg-mozext-commits mailing list