sc/source/ui/view/gridwin.cxx | 9 +++++++++ 1 file changed, 9 insertions(+)
New commits: commit 718ee019335aaabb58750adac639efe962f4858d Author: Povilas Kanapickas <povi...@radix.lt> AuthorDate: Wed Dec 7 03:13:30 2022 +0200 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Dec 15 19:34:48 2022 +0000 sc: React to touchpad zoom gestures in ScGridWindow Change-Id: I21f0e6a820149abe4457950e7382bbc7752eeb6e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143757 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> Signed-off-by: Xisco Fauli <xiscofa...@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144231 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index 5fe0a4edd7c9..3316afdf95e4 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -3035,6 +3035,15 @@ void ScGridWindow::Command( const CommandEvent& rCEvt ) Window::Command(rCEvt); return; } + + if (nCmd == CommandEventId::GestureZoom) + { + bool bDone = mrViewData.GetView()->GestureZoomCommand(rCEvt); + if (!bDone) + Window::Command(rCEvt); + return; + } + // #i7560# FormulaMode check is below scrolling - scrolling is allowed during formula input bool bDisable = pScMod->IsFormulaMode() || pScMod->IsModalMode(mrViewData.GetSfxDocShell());