diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-06-22 17:22:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-06-22 18:24:48 +0200 |
commit | 1adc3c76d773adc92d1c6d858358b7caa64e929a (patch) | |
tree | dbb7d556bc3bee4d6e83a88c8ce6a9eff5853061 | |
parent | 23580a95fb5aa5b64d7d767eb0f5a89b0d740460 (diff) |
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@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sd/source/ui/slideshow/slideshowimpl.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index 327ecb633bb4..9a7ccda3ae11 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -1162,8 +1162,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(); |