[Pkg-mozext-commits] [firegestures] 03/13: [Nightly48.0a1] fix tab wheel gesture
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 97ad80fc9a321935d7cd00e9ba87d66bf1eaabf5
Author: Gomita <gomita at xuldev.org>
Date: Sun May 15 02:15:02 2016 +0900
[Nightly48.0a1] fix tab wheel gesture
---
components/xdGestureHandler.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/components/xdGestureHandler.js b/components/xdGestureHandler.js
index 184e681..a3b2a7e 100644
--- a/components/xdGestureHandler.js
+++ b/components/xdGestureHandler.js
@@ -156,9 +156,9 @@ xdGestureHandler.prototype = {
this._drawArea.addEventListener("click", this, true);
// prefs for tab wheel gesture
if (this._drawArea.localName == "tabbrowser") {
- this._drawArea.mStrip.removeEventListener("DOMMouseScroll", this._wheelOnTabBar, true);
+ this._drawArea.tabContainer.removeEventListener("wheel", this._wheelOnTabBar, true);
if (getPref("tabwheelgesture"))
- this._drawArea.mStrip.addEventListener("DOMMouseScroll", this._wheelOnTabBar, true);
+ this._drawArea.tabContainer.addEventListener("wheel", this._wheelOnTabBar, true);
}
// if trigger button is middle, disable loading the clipboard URL with middle click.
if (this._triggerButton == 1) {
@@ -469,7 +469,7 @@ xdGestureHandler.prototype = {
return;
event.preventDefault();
event.stopPropagation();
- tabbar.advanceSelectedTab(event.detail < 0 ? -1 : 1, true);
+ tabbar.advanceSelectedTab(event.deltaY < 0 ? -1 : 1, true);
},
// called from handleEvent (type is "mousedown", "MozSwipeGesture")
--
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