From e851f558c4b37de7757520757a620bbcb6b984b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A3o=20Gottwald?= Date: Tue, 27 Jul 2010 01:02:58 +0200 Subject: [PATCH] Bug 487829 - Scroll buttons should only react to left clicks. r=enn --HG-- extra : rebase_source : fbf2e82c47d86dc98bfe5f9412f16770240ef455 --- toolkit/content/widgets/scrollbox.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/toolkit/content/widgets/scrollbox.xml b/toolkit/content/widgets/scrollbox.xml index ff5153fe2c33..f210f1a5c53e 100644 --- a/toolkit/content/widgets/scrollbox.xml +++ b/toolkit/content/widgets/scrollbox.xml @@ -549,9 +549,9 @@ xbl:inherits="orient" anonid="scrollbutton-up" onclick="_distanceScroll(event);" - onmousedown="_startScroll(-1);" + onmousedown="if (event.button == 0) _startScroll(-1);" + onmouseup="if (event.button == 0) _stopScroll();" onmouseover="_continueScroll(-1);" - onmouseup="_stopScroll();" onmouseout="_pauseScroll();"/> @@ -560,9 +560,9 @@ xbl:inherits="orient" anonid="scrollbutton-down" onclick="_distanceScroll(event);" - onmousedown="_startScroll(1);" + onmousedown="if (event.button == 0) _startScroll(1);" + onmouseup="if (event.button == 0) _stopScroll();" onmouseover="_continueScroll(1);" - onmouseup="_stopScroll();" onmouseout="_pauseScroll();"/>