diff options
Diffstat (limited to 'src/ui/list.cpp')
-rw-r--r-- | src/ui/list.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/list.cpp b/src/ui/list.cpp index 4e6ca38..06eaf37 100644 --- a/src/ui/list.cpp +++ b/src/ui/list.cpp @@ -257,7 +257,7 @@ bool CList::EventProcess(const Event &event) if ((m_state & STATE_ENABLE) == 0) return true; - if (event.type == EVENT_KEY_DOWN && event.mouseButton.button == 5 && Detect(event.pos)) { + if (event.type == EVENT_MOUSE_WHEEL && event.mouseWheel.dir == WHEEL_UP && Detect(event.mouseWheel.pos)) { if (m_firstLine > 0) m_firstLine--; UpdateScroll(); @@ -265,7 +265,7 @@ bool CList::EventProcess(const Event &event) return true; } - if (event.type == EVENT_KEY_DOWN && event.mouseButton.button == 4 && Detect(event.pos)) { + if (event.type == EVENT_MOUSE_WHEEL && event.mouseWheel.dir == WHEEL_DOWN && Detect(event.mouseWheel.pos)) { if (m_firstLine < m_totalLine - m_displayLine) m_firstLine++; UpdateScroll(); |