projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f383766
)
Make GUITable mouse wheel scrolling faster
author
Kahrl
<kahrl@gmx.net>
Fri, 27 Jun 2014 21:55:01 +0000
(23:55 +0200)
committer
Kahrl
<kahrl@gmx.net>
Fri, 27 Jun 2014 21:55:01 +0000
(23:55 +0200)
src/guiTable.cpp
patch
|
blob
|
history
diff --git
a/src/guiTable.cpp
b/src/guiTable.cpp
index e2da4eadaab58ba494f98ef2eb54592913f7db6d..6ce8574865d4c8e456ba871ded02295098e84064 100644
(file)
--- 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;
}