mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 19:43:45 +01:00
Make GUITable mouse wheel scrolling faster
This commit is contained in:
parent
f383766dbf
commit
6ee0db6fec
@ -833,7 +833,7 @@ bool GUITable::OnEvent(const SEvent &event)
|
|||||||
|
|
||||||
if (event.MouseInput.Event == EMIE_MOUSE_WHEEL) {
|
if (event.MouseInput.Event == EMIE_MOUSE_WHEEL) {
|
||||||
m_scrollbar->setPos(m_scrollbar->getPos() +
|
m_scrollbar->setPos(m_scrollbar->getPos() +
|
||||||
(event.MouseInput.Wheel < 0 ? -1 : 1) *
|
(event.MouseInput.Wheel < 0 ? -3 : 3) *
|
||||||
- (s32) m_rowheight / 2);
|
- (s32) m_rowheight / 2);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user