diff options
author | Tibor Nagy <tibor.nagy.extern@allotropia.de> | 2024-07-25 02:05:09 +0200 |
---|---|---|
committer | Nagy Tibor <tibor.nagy.extern@allotropia.de> | 2024-07-25 12:00:17 +0200 |
commit | 042c62954be6ca55287e64cc725e71db4ddd7d8c (patch) | |
tree | f7f0b71eb7f579acbdb55b4dd33b8a32f377e631 /sw/source/uibase/docvw | |
parent | 566fbd5cc3b56fdfae88274e6f01fa3451cc1b79 (diff) |
tdf#85677: Add support for Windows touch gestures (panning,zooming)
Change-Id: Ib0243889621663ddb9b6789ede7643d54f06041e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170988
Tested-by: Jenkins
Reviewed-by: Nagy Tibor <tibor.nagy.extern@allotropia.de>
Diffstat (limited to 'sw/source/uibase/docvw')
-rw-r--r-- | sw/source/uibase/docvw/edtwin.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index 81064a94a8f7..8a917ac2e806 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -5780,6 +5780,18 @@ void SwEditWin::Command( const CommandEvent& rCEvt ) break; } + case CommandEventId::GesturePan: + { + if (m_pSavedOutlineFrame && rSh.GetViewOptions()->IsShowOutlineContentVisibilityButton()) + { + GetFrameControlsManager().RemoveControlsByType(FrameControlType::Outline, m_pSavedOutlineFrame); + m_pSavedOutlineFrame = nullptr; + } + m_pShadCursor.reset(); + bCallBase = !m_rView.HandleGesturePanCommand(rCEvt); + break; + } + case CommandEventId::GestureLongPress: case CommandEventId::GestureSwipe: //nothing yet break; |