sw/source/uibase/docvw/edtwin.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+)
New commits: commit 732aa132e37223b4ef9f73cf26018b206ebab56b Author: Povilas Kanapickas <povi...@radix.lt> AuthorDate: Wed Dec 7 03:13:27 2022 +0200 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Dec 15 19:33:28 2022 +0000 sw: React to touchpad zoom gestures in SwEditWin Change-Id: I45a3525f3db47b2ea002a592df144a83ee39fc68 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143754 Tested-by: Tomaž Vajngerl <qui...@gmail.com> Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> Signed-off-by: Xisco Fauli <xiscofa...@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144228 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index 298f4da5fa45..1b59059d11e2 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -5632,6 +5632,18 @@ void SwEditWin::Command( const CommandEvent& rCEvt ) bCallBase = !m_rView.HandleWheelCommands( rCEvt ); break; + case CommandEventId::GestureZoom: + { + if (m_pSavedOutlineFrame && rSh.GetViewOptions()->IsShowOutlineContentVisibilityButton()) + { + GetFrameControlsManager().RemoveControlsByType(FrameControlType::Outline, m_pSavedOutlineFrame); + m_pSavedOutlineFrame = nullptr; + } + m_pShadCursor.reset(); + bCallBase = !m_rView.HandleGestureZoomCommand(rCEvt); + break; + } + case CommandEventId::GestureLongPress: case CommandEventId::GestureSwipe: //nothing yet break;