[Libreoffice-commits] core.git: Branch 'distro/lhm/libreoffice-5-2+backports' - sd/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Nov 8 11:29:28 UTC 2018


 sd/source/ui/slideshow/slideshowimpl.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 7c23a49a90ef6a16057cc8639c93bc451fca9fc3
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jun 22 17:22:17 2017 +0100
Commit:     Thorsten Behrens <Thorsten.Behrens at CIB.de>
CommitDate: Thu Nov 8 12:27:59 2018 +0100

    Resolves: tdf#108475 swipe only if some reasonable movement was involved
    
    Change-Id: I5ee2a60f80728a2cca1401e43c8e27f852bfc657
    Reviewed-on: https://gerrit.libreoffice.org/39116
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    (cherry picked from commit 1adc3c76d773adc92d1c6d858358b7caa64e929a)
    Reviewed-on: https://gerrit.libreoffice.org/62966
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
    Tested-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>

diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx
index 29b0201406c2..ff329ee79d08 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