[Pkg-mozext-commits] [tabmixplus] 13/22: Follow up bug 1316505 part.1 The "wheel" event handler of <scrollbox> should use |.scrollByPixels()| for respecting wheel event's scroll speed and scrolling smoother
David Prévot
taffit at moszumanska.debian.org
Sat Aug 5 15:28:34 UTC 2017
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag 0.5.0.4pre.170625a1
in repository tabmixplus.
commit 90e10b37a32ec9653618d770de11aa37fdf90de0
Author: onemen <tabmix.onemen at gmail.com>
Date: Mon Jun 19 17:02:38 2017 +0300
Follow up bug 1316505 part.1 The "wheel" event handler of <scrollbox> should use |.scrollByPixels()| for respecting wheel event's scroll speed and scrolling smoother
---
chrome/content/tab/scrollbox.xml | 7 +++++++
chrome/content/tabmix.js | 2 ++
2 files changed, 9 insertions(+)
diff --git a/chrome/content/tab/scrollbox.xml b/chrome/content/tab/scrollbox.xml
index 99ea832..56b80ea 100644
--- a/chrome/content/tab/scrollbox.xml
+++ b/chrome/content/tab/scrollbox.xml
@@ -227,6 +227,13 @@
).toCode();
}
+ if (Tabmix.isVersion(530)) {
+ Tabmix.changeCode(this, "scrollbox.lineScrollAmount", {getter: true})._replace(
+ 'totalWidth / elements.length',
+ 'this.isMultiRow ? totalWidth / Tabmix.tabsUtils.lastTabRowNumber : $&'
+ ).defineProperty();
+ }
+
this._scrollButtonUpLeft.addEventListener("contextmenu", this._createScrollButtonContextMenu, true);
this._scrollButtonDownLeft.addEventListener("contextmenu", this._createScrollButtonContextMenu, true);
diff --git a/chrome/content/tabmix.js b/chrome/content/tabmix.js
index 40ee4ad..82a3aa8 100644
--- a/chrome/content/tabmix.js
+++ b/chrome/content/tabmix.js
@@ -1053,6 +1053,8 @@ var TMP_eventListener = {
} else if (Tabmix.isVersion(490) &&
aEvent.deltaMode == aEvent.DOM_DELTA_PAGE) {
tabStrip.scrollByPixels(delta * tabStrip.scrollClientSize);
+ } else if (Tabmix.isVersion(530) && !TabmixTabbar.isMultiRow) {
+ tabStrip.scrollByPixels(delta * tabStrip.lineScrollAmount);
} else {
// scroll the tabbar by one tab
if (orient == "horizontal" || TabmixTabbar.isMultiRow) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git
More information about the Pkg-mozext-commits
mailing list