summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-06-22 17:22:17 +0100
committerDavid Tardon <dtardon@redhat.com>2017-06-25 16:07:59 +0200
commitbe95033358460a3c411016297eb45a042460d4c2 (patch)
treed611b571621c5a711a6f566f83134ac23989b131
parente9cb227d3fd65ea46ffb926f2babb1926e5f2133 (diff)
Resolves: tdf#108475 swipe only if some reasonable movement was involved
Change-Id: I5ee2a60f80728a2cca1401e43c8e27f852bfc657 Reviewed-on: https://gerrit.libreoffice.org/39118 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
-rw-r--r--sd/source/ui/slideshow/slideshowimpl.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx
index 80b8dd5ef504..e3d5a4c59c29 100644
--- a/sd/source/ui/slideshow/slideshowimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowimpl.cxx
@@ -1187,8 +1187,10 @@ bool SlideshowImpl::swipe(const CommandSwipeData &rSwipeData)
{
if (mbUsePen || mnContextMenuEvent)
return false;
-
double nVelocityX = rSwipeData.getVelocityX();
+ // tdf#108475 make it swipe only if some reasonable movement was involved
+ if (fabs(nVelocityX) < 50)
+ return false;
if (nVelocityX > 0)
{
gotoPreviousSlide();