summaryrefslogtreecommitdiff
path: root/vcl/source/window/layout.cxx
diff options
context:
space:
mode:
authorTibor Nagy <tibor.nagy.extern@allotropia.de>2024-07-25 02:05:09 +0200
committerNagy Tibor <tibor.nagy.extern@allotropia.de>2024-07-25 12:00:17 +0200
commit042c62954be6ca55287e64cc725e71db4ddd7d8c (patch)
treef7f0b71eb7f579acbdb55b4dd33b8a32f377e631 /vcl/source/window/layout.cxx
parent566fbd5cc3b56fdfae88274e6f01fa3451cc1b79 (diff)
tdf#85677: Add support for Windows touch gestures (panning,zooming)
Change-Id: Ib0243889621663ddb9b6789ede7643d54f06041e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170988 Tested-by: Jenkins Reviewed-by: Nagy Tibor <tibor.nagy.extern@allotropia.de>
Diffstat (limited to 'vcl/source/window/layout.cxx')
-rw-r--r--vcl/source/window/layout.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 14c7c9ade823..d9ce06bc1ae0 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -2176,6 +2176,11 @@ bool VclScrolledWindow::EventNotify(NotifyEvent& rNEvt)
m_pVScroll->IsVisible() ? m_pVScroll : nullptr);
}
}
+ else if (rCEvt.GetCommand() == CommandEventId::GesturePan)
+ {
+ bDone = HandleScrollCommand(rCEvt, m_pHScroll->IsVisible() ? m_pHScroll : nullptr,
+ m_pVScroll->IsVisible() ? m_pVScroll : nullptr);
+ }
}
return bDone || VclBin::EventNotify( rNEvt );