Add default translations to handle mouse wheel events for moving the
scrollbar.

Signed-off-by: Roberto Branciforti <[email protected]>
---
 src/Scrollbar.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/Scrollbar.c b/src/Scrollbar.c
index 894a945..5e4fdcf 100644
--- a/src/Scrollbar.c
+++ b/src/Scrollbar.c
@@ -102,6 +102,8 @@ static char defaultTranslations[] =
 "<Btn1Down>:"  "StartScroll(Forward)\n"
 "<Btn2Down>:"  "StartScroll(Continuous) MoveThumb() NotifyThumb()\n"
 "<Btn3Down>:"  "StartScroll(Backward)\n"
+"<Btn4Down>:"  "StartScroll(Backward)\n"
+"<Btn5Down>:"  "StartScroll(Forward)\n"
 "<Btn2Motion>:"        "MoveThumb() NotifyThumb()\n"
 "<BtnUp>:"     "NotifyScroll(Proportional) EndScroll()\n";
 
-- 
1.6.4

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to