Mouse wheel+shift in color-bar jumps entire columns.

This commit is contained in:
David Capello 2010-03-28 13:11:31 -03:00
parent ee878c87e9
commit 129d5a9b13

View File

@ -436,7 +436,7 @@ bool ColorBar::msg_proc(JMessage msg)
if (!(msg->any.shifts & (KB_ALT_FLAG |
KB_CTRL_FLAG))) {
if (msg->any.shifts & KB_SHIFT_FLAG)
delta *= m_colorsPerColum/2;
delta *= m_colorsPerColum;
if (((int)m_firstIndex)+delta < 0)
m_firstIndex = 0;