changeset 1340:d5f6793dc17c

browser (slideshow): use non zero threshold to avoid accidental swipe
author Goffi <goffi@goffi.org>
date Mon, 24 Aug 2020 22:47:51 +0200
parents 3a1cb3c5702f
children a8bc1ee455ae
files libervia/pages/_browser/slideshow.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/pages/_browser/slideshow.py	Sat Aug 15 23:29:00 2020 +0200
+++ b/libervia/pages/_browser/slideshow.py	Mon Aug 24 22:47:51 2020 +0200
@@ -56,6 +56,9 @@
         self.swiper = Swiper.new(
             ".swiper-container",
             {
+                # default 0 value results in lot of accidental swipes, notably when media
+                # player is used
+                "threshold": 10,
                 "pagination": {
                     "el": ".swiper-pagination",
                 },