summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabview.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/tabview.cxx')
-rw-r--r--sc/source/ui/view/tabview.cxx23
1 files changed, 23 insertions, 0 deletions
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index 8eba950c48ce..1e999d876cfe 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -1015,6 +1015,29 @@ bool ScTabView::ScrollCommand( const CommandEvent& rCEvt, ScSplitPos ePos )
return bDone;
}
+bool ScTabView::GesturePanCommand(const CommandEvent& rCEvt)
+{
+ HideNoteMarker();
+
+ bool bDone = false;
+ const CommandGesturePanData* pData = rCEvt.GetGesturePanData();
+ if (!pData)
+ return false;
+
+ if (aViewData.GetViewShell()->GetViewFrame().GetFrame().IsInPlace())
+ return false;
+
+ ScSplitPos ePos = aViewData.GetActivePart();
+ ScHSplitPos eHPos = WhichH(ePos);
+ ScVSplitPos eVPos = WhichV(ePos);
+ ScrollAdaptor* pHScroll = (eHPos == SC_SPLIT_LEFT) ? aHScrollLeft.get() : aHScrollRight.get();
+ ScrollAdaptor* pVScroll = (eVPos == SC_SPLIT_TOP) ? aVScrollTop.get() : aVScrollBottom.get();
+ if (pGridWin[ePos])
+ bDone = pGridWin[ePos]->HandleScrollCommand(rCEvt, pHScroll, pVScroll);
+
+ return bDone;
+}
+
bool ScTabView::GestureZoomCommand(const CommandEvent& rCEvt)
{
HideNoteMarker();