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:44 +0200
commit5c768420a4b0a6543ef802549f90f489063ac609 (patch)
tree13016c09ed247ab4c303a8257b67526c8ab81e5d
parent611299a16f9b21914d37788b700af0e0ba9a5aa0 (diff)
Resolves: tdf#108475 swipe only if some reasonable movement was involved
Change-Id: I5ee2a60f80728a2cca1401e43c8e27f852bfc657 Reviewed-on: https://gerrit.libreoffice.org/39117 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 8de1e7ac82d2..6cb57b88e444 100644
--- a/sd/source/ui/slideshow/slideshowimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowimpl.cxx
@@ -1188,8 +1188,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();