Skip to content

Commit

Permalink
Make GUITable mouse wheel scrolling faster
Browse files Browse the repository at this point in the history
  • Loading branch information
kahrl committed Jun 27, 2014
1 parent f383766 commit 6ee0db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guiTable.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6ee0db6

Please sign in to comment.