[Pkg-mozext-commits] [tabmixplus] 05/48: Prevents mouse events on our scroll buttons from go throw when the buttons disabled

David Prévot taffit at moszumanska.debian.org
Sun Aug 20 03:14:34 UTC 2017


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit ff3a6e5849df3d5004141ca7e07e28c91bcddc40
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sun Jul 2 17:54:32 2017 +0300

    Prevents mouse events on our scroll buttons from go throw when the buttons disabled
---
 chrome/content/tab/scrollbox.xml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/chrome/content/tab/scrollbox.xml b/chrome/content/tab/scrollbox.xml
index 9bd0c4e..d98a9fe 100644
--- a/chrome/content/tab/scrollbox.xml
+++ b/chrome/content/tab/scrollbox.xml
@@ -12,19 +12,19 @@
                            xbl:inherits="orient,disabled=scrolledtostart"
                            oncontextmenu="TabmixAllTabs.createScrollButtonTabsList(event, 'left');"
                            anonid="scrollbutton-up-right"
-                           onclick="gBrowser.tabContainer.mTabstrip._distanceScroll(event);"
-                           onmousedown="if (event.button === 0) gBrowser.tabContainer.mTabstrip._startScroll(-1);"
+                           onclick="if (!this.disabled) gBrowser.tabContainer.mTabstrip._distanceScroll(event);"
+                           onmousedown="if (event.button === 0 && !this.disabled) gBrowser.tabContainer.mTabstrip._startScroll(-1);"
                            onmouseup="if (event.button === 0) gBrowser.tabContainer.mTabstrip._stopScroll();"
-                           onmouseover="gBrowser.tabContainer.mTabstrip._continueScroll(-1);"
+                           onmouseover="if (!this.disabled) gBrowser.tabContainer.mTabstrip._continueScroll(-1);"
                            onmouseout="gBrowser.tabContainer.mTabstrip._pauseScroll();"/>
         <xul:toolbarbutton class="scrollbutton-down"
                            xbl:inherits="orient,disabled=scrolledtoend"
                            oncontextmenu="TabmixAllTabs.createScrollButtonTabsList(event, 'right');"
                            anonid="scrollbutton-down-right"
-                           onclick="gBrowser.tabContainer.mTabstrip._distanceScroll(event);"
-                           onmousedown="if (event.button === 0) gBrowser.tabContainer.mTabstrip._startScroll(1);"
+                           onclick="if (!this.disabled) gBrowser.tabContainer.mTabstrip._distanceScroll(event);"
+                           onmousedown="if (event.button === 0 && !this.disabled) gBrowser.tabContainer.mTabstrip._startScroll(1);"
                            onmouseup="if (event.button === 0) gBrowser.tabContainer.mTabstrip._stopScroll();"
-                           onmouseover="gBrowser.tabContainer.mTabstrip._continueScroll(1);"
+                           onmouseover="if (!this.disabled) gBrowser.tabContainer.mTabstrip._continueScroll(1);"
                            onmouseout="gBrowser.tabContainer.mTabstrip._pauseScroll();"/>
     </content>
     <implementation>

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