diff options
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/listctrl.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/svx/source/dialog/listctrl.cxx b/svx/source/dialog/listctrl.cxx index 29a8b14410d3..b1ecaf5b8972 100644 --- a/svx/source/dialog/listctrl.cxx +++ b/svx/source/dialog/listctrl.cxx @@ -142,4 +142,17 @@ void ListControl::deleteEntry(sal_uInt32 nPos) RecalcAll(); } +bool ListControl::EventNotify( NotifyEvent& rNEvt ) +{ + if (rNEvt.GetType() == MouseNotifyEvent::COMMAND) + { + const CommandEvent* pEvent = rNEvt.GetCommandEvent(); + if (pEvent && pEvent->GetCommand() == CommandEventId::Wheel) + { + HandleScrollCommand(*pEvent, nullptr, mpScrollBar.get()); + } + } + return true; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |