1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-23 08:08:47 -05:00

Make GUITable mouse wheel scrolling faster

This commit is contained in:
Kahrl 2014-06-27 23:55:01 +02:00
parent f383766dbf
commit 6ee0db6fec

View File

@ -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;
}