From 6ee0db6fec90471fb6873d7f3046aa8bfae8c2dd Mon Sep 17 00:00:00 2001 From: Kahrl Date: Fri, 27 Jun 2014 23:55:01 +0200 Subject: [PATCH] Make GUITable mouse wheel scrolling faster --- src/guiTable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guiTable.cpp b/src/guiTable.cpp index e2da4ead..6ce85748 100644 --- a/src/guiTable.cpp +++ b/src/guiTable.cpp @@ -833,7 +833,7 @@ bool GUITable::OnEvent(const SEvent &event) if (event.MouseInput.Event == EMIE_MOUSE_WHEEL) { m_scrollbar->setPos(m_scrollbar->getPos() + - (event.MouseInput.Wheel < 0 ? -1 : 1) * + (event.MouseInput.Wheel < 0 ? -3 : 3) * - (s32) m_rowheight / 2); return true; } -- 2.30.2