sc/source/ui/view/gridwin.cxx | 9 +++++++++ 1 file changed, 9 insertions(+)
New commits: commit 718ee019335aaabb58750adac639efe962f4858d Author: Povilas Kanapickas <[email protected]> AuthorDate: Wed Dec 7 03:13:30 2022 +0200 Commit: Caolán McNamara <[email protected]> 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 <[email protected]> Signed-off-by: Xisco Fauli <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144231 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> 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());
