From: Kahrl Date: Fri, 27 Jun 2014 21:55:01 +0000 (+0200) Subject: Make GUITable mouse wheel scrolling faster X-Git-Tag: 0.4.10~32 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6ee0db6fec90471fb6873d7f3046aa8bfae8c2dd;p=oweals%2Fminetest.git Make GUITable mouse wheel scrolling faster --- diff --git a/src/guiTable.cpp b/src/guiTable.cpp index e2da4eada..6ce857486 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; }