[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - sd/source
Caolán McNamara
caolanm at redhat.com
Sun Jun 25 14:08:20 UTC 2017
sd/source/ui/slideshow/slideshowimpl.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit be95033358460a3c411016297eb45a042460d4c2
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Jun 22 17:22:17 2017 +0100
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 at libreoffice.org>
Reviewed-by: David Tardon <dtardon at redhat.com>
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();
More information about the Libreoffice-commits
mailing list