sc/source/ui/view/gridwin.cxx |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit ccfb36da48a938c7d95b3d6af5862b14721208ef
Author:     Povilas Kanapickas <povi...@radix.lt>
AuthorDate: Wed Dec 7 03:13:30 2022 +0200
Commit:     Tomaž Vajngerl <qui...@gmail.com>
CommitDate: Wed Dec 14 13:49:00 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>

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());

Reply via email to