From: Kahrl Date: Fri, 27 Jun 2014 21:55:01 +0000 (+0200) Subject: Make GUITable mouse wheel scrolling faster X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=6ee0db6fec90471fb6873d7f3046aa8bfae8c2dd;p=zefram%2Fminetest%2Fminetest_engine.git Make GUITable mouse wheel scrolling faster --- 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; }