[Pkg-mozext-commits] [firegestures] 06/13: [e10s] suppress selecting when starting gesture with left-button

David Prévot taffit at moszumanska.debian.org
Thu Jan 1 18:34:26 UTC 2015


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

taffit pushed a commit to branch master
in repository firegestures.

commit af76d80aa33261ec43e1a3f99f3133aefb87e281
Author: Gomita <gomita at xuldev.org>
Date:   Sat Dec 27 17:28:56 2014 +0900

    [e10s] suppress selecting when starting gesture with left-button
---
 chrome/content/firegestures/remote.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/chrome/content/firegestures/remote.js b/chrome/content/firegestures/remote.js
index 9410b10..209c4f0 100644
--- a/chrome/content/firegestures/remote.js
+++ b/chrome/content/firegestures/remote.js
@@ -71,6 +71,10 @@ let FireGesturesRemote = {
 			let win = doc.defaultView;
 			win.removeEventListener("scroll", this, false);
 			win.addEventListener("scroll", this, false);
+			// cancel selecting ranges
+			let sel = win.getSelection();
+			if (sel.isCollapsed)
+				win.setTimeout(function() { sel.removeAllRanges(); }, 10);
 		}
 		// tell parent browser the source node and some info
 		sendSyncMessage("FireGesturesRemote:Response", { name: "sourceNode" }, { elt: elt });

-- 
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