Skip to content
Permalink
Browse files

Make GUITable mouse wheel scrolling faster

  • Loading branch information
kahrl committed Jun 27, 2014
1 parent f383766 commit 6ee0db6fec90471fb6873d7f3046aa8bfae8c2dd
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit 6ee0db6

Please sign in to comment.
You can’t perform that action at this time.