diff options
author | Kahrl <kahrl@gmx.net> | 2014-06-27 23:55:01 +0200 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2014-06-27 23:55:01 +0200 |
commit | 6ee0db6fec90471fb6873d7f3046aa8bfae8c2dd (patch) | |
tree | 07283df84d69d7da7a495f155e7adfd01b290390 | |
parent | f383766dbf636c47d5d115b3f6e9aa3bcb54cfa4 (diff) | |
download | minetest-6ee0db6fec90471fb6873d7f3046aa8bfae8c2dd.tar.gz minetest-6ee0db6fec90471fb6873d7f3046aa8bfae8c2dd.tar.bz2 minetest-6ee0db6fec90471fb6873d7f3046aa8bfae8c2dd.zip |
Make GUITable mouse wheel scrolling faster
-rw-r--r-- | src/guiTable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |