summaryrefslogtreecommitdiff
path: root/vcl/source/treelist/svimpbox.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/treelist/svimpbox.cxx')
-rw-r--r--vcl/source/treelist/svimpbox.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/vcl/source/treelist/svimpbox.cxx b/vcl/source/treelist/svimpbox.cxx
index be0ccf735446..e7d4370c7365 100644
--- a/vcl/source/treelist/svimpbox.cxx
+++ b/vcl/source/treelist/svimpbox.cxx
@@ -2850,10 +2850,12 @@ void SvImpLBox::Command(const CommandEvent& rCEvt)
aEditIdle.Stop();
// scroll mouse event?
- if (((nCommand == CommandEventId::Wheel) || (nCommand == CommandEventId::StartAutoScroll)
- || (nCommand == CommandEventId::AutoScroll))
- && pView->HandleScrollCommand(rCEvt, aHorSBar.get(), aVerSBar.get()))
- return;
+ if (nCommand == CommandEventId::Wheel || nCommand == CommandEventId::StartAutoScroll
+ || nCommand == CommandEventId::AutoScroll || nCommand == CommandEventId::Gesture)
+ {
+ if (pView->HandleScrollCommand(rCEvt, aHorSBar.get(), aVerSBar.get()))
+ return;
+ }
if (bContextMenuHandling && nCommand == CommandEventId::ContextMenu)
{