Make GUITable mouse wheel scrolling faster
authorKahrl <kahrl@gmx.net>
Fri, 27 Jun 2014 21:55:01 +0000 (23:55 +0200)
committerKahrl <kahrl@gmx.net>
Fri, 27 Jun 2014 21:55:01 +0000 (23:55 +0200)
src/guiTable.cpp

index e2da4eadaab58ba494f98ef2eb54592913f7db6d..6ce8574865d4c8e456ba871ded02295098e84064 100644 (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;
                }