summaryrefslogtreecommitdiff
path: root/vcl/source/window/window2.cxx
diff options
context:
space:
mode:
authorPovilas Kanapickas <povilas@radix.lt>2022-09-02 00:04:39 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-09-05 16:20:03 +0200
commit99b85a2eda006a59306042dad5b0b1de116febf3 (patch)
tree8508c83afa26f2898609b08943cc1530f0f0830e /vcl/source/window/window2.cxx
parentc8cc4c29369f3d5df22c0b9260c00816a7c891eb (diff)
vcl: Rename Gesture event to GesturePan
We have 5 gesture types: GestureZoom, GestureRotate, Gesture (for panning), Swipe and LongPress. For consistency all of these will use Gesture as a prefix to reduce confusion and for easier grepping throughout the codebase. Change-Id: I8b9e245d011203a19c1172f9833c172f65382ca9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139241 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window/window2.cxx')
-rw-r--r--vcl/source/window/window2.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index 4d41c9ddf382..b6c4ee25415a 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -763,21 +763,21 @@ bool Window::HandleScrollCommand( const CommandEvent& rCmd,
}
break;
- case CommandEventId::Gesture:
+ case CommandEventId::GesturePan:
{
if (pVScrl)
{
- const CommandGestureData* pData = rCmd.GetGestureData();
- if (pData->meEventType == GestureEventType::PanningBegin)
+ const CommandGesturePanData* pData = rCmd.GetGesturePanData();
+ if (pData->meEventType == GestureEventPanType::Begin)
{
mpWindowImpl->mpFrameData->mnTouchPanPosition = pVScrl->GetThumbPos();
}
- else if(pData->meEventType == GestureEventType::PanningUpdate)
+ else if(pData->meEventType == GestureEventPanType::Update)
{
tools::Long nOriginalPosition = mpWindowImpl->mpFrameData->mnTouchPanPosition;
pVScrl->DoScroll(nOriginalPosition + (pData->mfOffset / pVScrl->GetVisibleSize()));
}
- if (pData->meEventType == GestureEventType::PanningEnd)
+ if (pData->meEventType == GestureEventPanType::End)
{
mpWindowImpl->mpFrameData->mnTouchPanPosition = -1;
}