sw/source/uibase/docvw/edtwin.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+)
New commits: commit cedf0458966b6e7e4398b45ee77f77053d43e79c Author: Povilas Kanapickas <povi...@radix.lt> AuthorDate: Wed Dec 7 03:13:27 2022 +0200 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Wed Dec 14 13:46:21 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> 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;