aboutsummaryrefslogtreecommitdiff
path: root/src/guiTable.cpp
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2014-06-27 23:55:01 +0200
committerKahrl <kahrl@gmx.net>2014-06-27 23:55:01 +0200
commit6ee0db6fec90471fb6873d7f3046aa8bfae8c2dd (patch)
tree07283df84d69d7da7a495f155e7adfd01b290390 /src/guiTable.cpp
parentf383766dbf636c47d5d115b3f6e9aa3bcb54cfa4 (diff)
downloadminetest-6ee0db6fec90471fb6873d7f3046aa8bfae8c2dd.tar.gz
minetest-6ee0db6fec90471fb6873d7f3046aa8bfae8c2dd.tar.bz2
minetest-6ee0db6fec90471fb6873d7f3046aa8bfae8c2dd.zip
Make GUITable mouse wheel scrolling faster
Diffstat (limited to 'src/guiTable.cpp')
-rw-r--r--src/guiTable.cpp2
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;
}